summaryrefslogtreecommitdiffhomepage
path: root/control/controlclient/auto.go
diff options
context:
space:
mode:
authorMaisem Ali <maisem@tailscale.com>2023-10-23 14:20:15 -0700
committerMaisem Ali <maisem@tailscale.com>2023-10-23 14:20:15 -0700
commitb2cd13146c3650ef05fba06712465a4301196479 (patch)
tree8dd3858cc98c6e122f1d2548173816c8a7b0a41d /control/controlclient/auto.go
parentcc43f4d1de78267dd2eb6734c2a89f05a3cc0372 (diff)
downloadtailscale-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.go12
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) {