mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 03:25:35 +00:00
ipn/ipnlocal: don't install any magicdns names if not proxying.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
63c00764e1
commit
f89dc1c903
@ -1493,10 +1493,14 @@ func (b *LocalBackend) authReconfig() {
|
|||||||
}
|
}
|
||||||
dcfg.Hosts[name] = ips
|
dcfg.Hosts[name] = ips
|
||||||
}
|
}
|
||||||
dcfg.Hosts = map[string][]netaddr.IP{}
|
// TODO: hack to make the current code continue to work while
|
||||||
set(nm.Name, nm.Addresses)
|
// refactoring happens.
|
||||||
for _, peer := range nm.Peers {
|
if proxied {
|
||||||
set(peer.Name, peer.Addresses)
|
dcfg.Hosts = map[string][]netaddr.IP{}
|
||||||
|
set(nm.Name, nm.Addresses)
|
||||||
|
for _, peer := range nm.Peers {
|
||||||
|
set(peer.Name, peer.Addresses)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user