summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-12-17 14:37:12 +0100
committerAndrej Mihajlov <and@mullvad.net>2021-12-17 14:37:12 +0100
commit209cc97133e16286e86ab919fcbbbfeba66d4b11 (patch)
tree36d24677e6d35ca14ef9675d954700d1c5ec4d20 /gui
parentfb1cc6d3c1c6e3b219974e235a94e062ece5d1ce (diff)
parentefe54e57245a5c5746493024a4bf2591a7ec1bc6 (diff)
downloadmullvadvpn-209cc97133e16286e86ab919fcbbbfeba66d4b11.tar.xz
mullvadvpn-209cc97133e16286e86ab919fcbbbfeba66d4b11.zip
Merge branch 'disable-chrome-dns-resolver'
Diffstat (limited to 'gui')
-rw-r--r--gui/src/main/index.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index ede8384e67..5bce63cc2d 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -463,6 +463,13 @@ class ApplicationMain {
}
private onReady = async () => {
+ // Disable built-in DNS resolver.
+ app.configureHostResolver({
+ enableBuiltInResolver: false,
+ secureDnsMode: 'off',
+ secureDnsServers: [],
+ });
+
// There's no option that prevents Electron from fetching spellcheck dictionaries from
// Chromium's CDN and passing a non-resolving URL is the only known way to prevent it from
// fetching. https://github.com/electron/electron/issues/22995