From 39ac8b34325e9af38ac295cec610788b32abde67 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sun, 24 May 2026 21:46:22 +0000 Subject: [PATCH] hotfix(updater): use DoH for all updating operations, not just resolving server hostnames --- internal/cli/update.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/cli/update.go b/internal/cli/update.go index 90ef69b6..09f8064c 100644 --- a/internal/cli/update.go +++ b/internal/cli/update.go @@ -5,6 +5,7 @@ import ( "errors" "flag" "fmt" + "net" "net/http" "slices" "strings" @@ -104,6 +105,10 @@ func (c *CLI) Update(ctx context.Context, args []string, logger UpdaterLogger) e if err != nil { return fmt.Errorf("creating DoH dialer: %w", err) } + net.DefaultResolver = &net.Resolver{ + PreferGo: true, + Dial: dnsDialer.Dial, + } const clientTimeout = 10 * time.Second httpClient := &http.Client{Timeout: clientTimeout}