ipn/ipnlocal: don't install any magicdns names if not proxying.

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/1657/head
David Anderson 4 years ago
parent 63c00764e1
commit f89dc1c903

@ -1493,12 +1493,16 @@ func (b *LocalBackend) authReconfig() {
} }
dcfg.Hosts[name] = ips dcfg.Hosts[name] = ips
} }
// TODO: hack to make the current code continue to work while
// refactoring happens.
if proxied {
dcfg.Hosts = map[string][]netaddr.IP{} dcfg.Hosts = map[string][]netaddr.IP{}
set(nm.Name, nm.Addresses) set(nm.Name, nm.Addresses)
for _, peer := range nm.Peers { for _, peer := range nm.Peers {
set(peer.Name, peer.Addresses) set(peer.Name, peer.Addresses)
} }
} }
}
err = b.e.Reconfig(cfg, rcfg, &dcfg) err = b.e.Reconfig(cfg, rcfg, &dcfg)
if err == wgengine.ErrNoChanges { if err == wgengine.ErrNoChanges {

Loading…
Cancel
Save