mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-24 09:39:39 +00:00
controlclient, magicsock: add debug knob to request IPv6 endpoints
Add opt-in method to request IPv6 endpoints from the control plane. For now they should just be skipped. A previous version of this CL was unconditional and reportedly had problems that I can't reproduce. So make it a knob until the mystery is solved. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
@@ -1456,6 +1456,10 @@ func (c *Conn) CreateEndpoint(key [32]byte, addrs string) (conn.Endpoint, error)
|
||||
}
|
||||
if ip4 := addr.IP.To4(); ip4 != nil {
|
||||
addr.IP = ip4
|
||||
} else {
|
||||
// TODO(bradfitz): stop skipping IPv6 ones for now.
|
||||
c.logf("magicsock: CreateEndpoint: ignoring IPv6 addr %v for now", addr)
|
||||
continue
|
||||
}
|
||||
a.addrs = append(a.addrs, *addr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user