mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 11:41:39 +00:00
ipn/ipnlocal: remove IPv6 records from MagicDNS.
Fixes #1813. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
2840afabba
commit
306a094d4b
@ -1670,6 +1670,16 @@ func (b *LocalBackend) authReconfig() {
|
|||||||
}
|
}
|
||||||
var ips []netaddr.IP
|
var ips []netaddr.IP
|
||||||
for _, addr := range addrs {
|
for _, addr := range addrs {
|
||||||
|
// Remove IPv6 addresses for now, as we don't
|
||||||
|
// guarantee that the peer node actually can speak
|
||||||
|
// IPv6 correctly.
|
||||||
|
//
|
||||||
|
// https://github.com/tailscale/tailscale/issues/1152
|
||||||
|
// tracks adding the right capability reporting to
|
||||||
|
// enable AAAA in MagicDNS.
|
||||||
|
if addr.IP.Is6() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
ips = append(ips, addr.IP)
|
ips = append(ips, addr.IP)
|
||||||
}
|
}
|
||||||
dcfg.Hosts[fqdn] = ips
|
dcfg.Hosts[fqdn] = ips
|
||||||
|
Loading…
x
Reference in New Issue
Block a user