diff options
| author | Maisem Ali <maisem@tailscale.com> | 2023-10-23 14:20:15 -0700 |
|---|---|---|
| committer | Maisem Ali <maisem@tailscale.com> | 2023-10-23 14:20:15 -0700 |
| commit | b2cd13146c3650ef05fba06712465a4301196479 (patch) | |
| tree | 8dd3858cc98c6e122f1d2548173816c8a7b0a41d /control/controlclient/auto.go | |
| parent | cc43f4d1de78267dd2eb6734c2a89f05a3cc0372 (diff) | |
| download | tailscale-maisem/ni.tar.xz tailscale-maisem/ni.zip | |
ipn/ipnlocal: move tailcfg.Netinfo ownership to LocalBackendmaisem/ni
The only thing place which owned the copy of Netinfo was the controlclient,
which meant that we had another place where we were modifying the hostinfo
and blending fields in. This moves all of that logic to now occur solely
in LocalBackend.
Updates #cleanup
Signed-off-by: Maisem Ali <maisem@tailscale.com>
Diffstat (limited to 'control/controlclient/auto.go')
| -rw-r--r-- | control/controlclient/auto.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/control/controlclient/auto.go b/control/controlclient/auto.go index fa5e2e106..10f5a3781 100644 --- a/control/controlclient/auto.go +++ b/control/controlclient/auto.go @@ -564,18 +564,6 @@ func (c *Auto) SetHostinfo(hi *tailcfg.Hostinfo) { c.updateControl() } -func (c *Auto) SetNetInfo(ni *tailcfg.NetInfo) { - if ni == nil { - panic("nil NetInfo") - } - if !c.direct.SetNetInfo(ni) { - return - } - - // Send new NetInfo to server - c.updateControl() -} - // SetTKAHead updates the TKA head hash that map-request infrastructure sends. func (c *Auto) SetTKAHead(headHash string) { if !c.direct.SetTKAHead(headHash) { |
