ipn/ipnlocal: don't install any magicdns names if not proxying.
@@ -1493,12 +1493,16 @@ func (b *LocalBackend) authReconfig() {
}
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{}
set(nm.Name, nm.Addresses)
for _, peer := range nm.Peers {
set(peer.Name, peer.Addresses)
}
}
+ }
err = b.e.Reconfig(cfg, rcfg, &dcfg)
if err == wgengine.ErrNoChanges {
