From ef640ed309c831fa8f6d092e9507dedc8ffb097a Mon Sep 17 00:00:00 2001 From: xqzr <34030394+xqzr@users.noreply.github.com> Date: Wed, 27 Aug 2025 17:36:33 +0800 Subject: [PATCH] checkSystemNetwork(): Use c.root-servers.net (#5059) --- app/dns/dns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dns/dns.go b/app/dns/dns.go index 1395231d..37183aba 100644 --- a/app/dns/dns.go +++ b/app/dns/dns.go @@ -329,7 +329,7 @@ func init() { } func checkSystemNetwork() (supportIPv4 bool, supportIPv6 bool) { - conn4, err4 := net.Dial("udp4", "8.8.8.8:53") + conn4, err4 := net.Dial("udp4", "192.33.4.12:53") if err4 != nil { supportIPv4 = false } else { @@ -337,7 +337,7 @@ func checkSystemNetwork() (supportIPv4 bool, supportIPv6 bool) { conn4.Close() } - conn6, err6 := net.Dial("udp6", "[2001:4860:4860::8888]:53") + conn6, err6 := net.Dial("udp6", "[2001:500:2::c]:53") if err6 != nil { supportIPv6 = false } else {