]> Cypherpunks.ru repositories - gostls13.git/commit
net: filter disabled interfaces in Windows DNS client
authorZhiyuan Zheng <zhzy0077@hotmail.com>
Thu, 13 Oct 2022 03:28:10 +0000 (03:28 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 2 Jun 2023 16:58:42 +0000 (16:58 +0000)
commitc9faf3126e7521aadd45673961f9842abfc84926
tree2a22c92ec3daf99cccbf08fb6d9833137bbde4b2
parent2e4fe8bbf0b7ca8fa523c3219dbaa64cec22b5dc
net: filter disabled interfaces in Windows DNS client

The Go DNS resolver on Windows should filter disabled
interfaces. Otherwise disabled TUN devices, VPNs will be also
considered as valid nameservers and finally timedout.

Fixes #56160

(Originally from Zhiyuan Zheng <zhzy0077@hotmail.com>
 in https://go.dev/cl/442375)

Co-authored-by: Zhiyuan Zheng <zhzy0077@hotmail.com>
GitHub-Last-Rev: db158625bb46692cbbc09e3fe4dfa023c733f4e6
GitHub-Pull-Request: golang/go#56161
Change-Id: I7becebc55c8ac612c670c533855f7e6ca397a496
Reviewed-on: https://go-review.googlesource.com/c/go/+/500375
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Auto-Submit: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/net/dnsconfig_windows.go