net/dns/resolver: don't avoid tailscale routes for DNS forwarding.

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/1677/head
David Anderson 4 years ago
parent 597c19ff4e
commit 6def647514

@ -20,7 +20,6 @@ import (
dns "golang.org/x/net/dns/dnsmessage" dns "golang.org/x/net/dns/dnsmessage"
"inet.af/netaddr" "inet.af/netaddr"
"tailscale.com/logtail/backoff" "tailscale.com/logtail/backoff"
"tailscale.com/net/netns"
"tailscale.com/types/logger" "tailscale.com/types/logger"
"tailscale.com/util/dnsname" "tailscale.com/util/dnsname"
) )
@ -453,7 +452,7 @@ func (c *fwdConn) read(out []byte) int {
func (c *fwdConn) reconnectLocked() { func (c *fwdConn) reconnectLocked() {
c.closeConnLocked() c.closeConnLocked()
// Make a new connection. // Make a new connection.
conn, err := netns.Listener().ListenPacket(context.Background(), "udp", "") conn, err := net.ListenPacket("udp", "")
if err != nil { if err != nil {
c.logf("ListenPacket failed: %v", err) c.logf("ListenPacket failed: %v", err)
} else { } else {

Loading…
Cancel
Save