summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-12-17 12:41:48 +0100
committerAndrej Mihajlov <and@mullvad.net>2021-12-17 14:16:52 +0100
commitefe54e57245a5c5746493024a4bf2591a7ec1bc6 (patch)
tree36d24677e6d35ca14ef9675d954700d1c5ec4d20 /gui/src
parentfb1cc6d3c1c6e3b219974e235a94e062ece5d1ce (diff)
downloadmullvadvpn-efe54e57245a5c5746493024a4bf2591a7ec1bc6.tar.xz
mullvadvpn-efe54e57245a5c5746493024a4bf2591a7ec1bc6.zip
Disable built-in DNS resolver
Diffstat (limited to 'gui/src')
-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