fix(dns): сбрасывать udp-резолверы, если сессия их не задала
Глобальный список переживал сессию, и следующая наследовала резолверы прошлой сессии или сети.
This commit is contained in:
1 parent
64f8b63548
commit
4865a73b5f
2 files changed
+7
-2
No files matched your search
@@ -345,7 +345,9 @@ const (
|
||||
|
||||
var udpDNSServersPtr atomic.Pointer[[]string]
|
||||
|
||||
func init() {
|
||||
func init() { ResetUDPDNSServers() }
|
||||
|
||||
func ResetUDPDNSServers() {
|
||||
def := []string{
|
||||
"77.88.8.8:53", "77.88.8.1:53",
|
||||
"8.8.8.8:53", "8.8.4.4:53",
|
||||
|
||||
Reference in new issue
Block a user