|
|
@ -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 {
|
|
|
|