summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
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