From 306a094d4bde6c5f3f6369d570f68174e6fb7443 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 28 Apr 2021 01:01:32 -0700 Subject: [PATCH] ipn/ipnlocal: remove IPv6 records from MagicDNS. Fixes #1813. Signed-off-by: David Anderson --- ipn/ipnlocal/local.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index 202ca39b3..b04061b7f 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -1670,6 +1670,16 @@ func (b *LocalBackend) authReconfig() { } var ips []netaddr.IP 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) } dcfg.Hosts[fqdn] = ips