Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: use secure dns by default

Abdullah Atta13f739763c09
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts
index e75b7d119..fe8e3c709 100644
--- a/apps/desktop/src/main.ts
+++ b/apps/desktop/src/main.ts
@@ -151,6 +151,15 @@ async function createWindow() {
app.once("ready", async () => {
console.info("App ready. Opening window.");
+ app.configureHostResolver({
+ secureDnsServers: [
+ "https://mozilla.cloudflare-dns.com/dns-query",
+ "https://dns.quad9.net/dns-query"
+ ],
+ enableBuiltInResolver: true,
+ secureDnsMode: "automatic"
+ });
+
if (!isDevelopment()) registerProtocol();
await createWindow();
configureAutoUpdater();