tailscale/control/controlclient
Maisem Ali c60cbca371 control/controlclient: store netinfo and hostinfo separately
Currently, when SetNetInfo is called it sets the value on
hostinfo.NetInfo. However, when SetHostInfo is called it overwrites the
hostinfo field which may mean it also clears out the NetInfo it had just
received.
This commit stores NetInfo separately and combines it into Hostinfo as
needed so that control is always notified of the latest values.

Also, remove unused copies of Hostinfo from ipn.Status and
controlclient.Auto.

Updates #tailscale/corp#4824 (maybe fixes)

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-05-03 15:33:01 -07:00
..
auto.go control/controlclient: store netinfo and hostinfo separately 2022-05-03 15:33:01 -07:00
client.go ssh/tailssh, ipnlocal, controlclient: fetch next SSHAction from network 2022-03-10 13:41:08 -08:00
controlclient_test.go control/controlclient: store netinfo and hostinfo separately 2022-05-03 15:33:01 -07:00
debug.go control/controlclient: grow goroutine debug buffer as needed 2021-07-22 13:18:05 -07:00
debug_test.go control/controlclient: don't use regexp in goroutine stack scrubbing 2021-07-22 13:18:05 -07:00
direct.go control/controlclient: store netinfo and hostinfo separately 2022-05-03 15:33:01 -07:00
direct_test.go net/tsdial: add SystemDial as a wrapper on netns.Dial 2022-04-27 12:02:36 -07:00
map.go control/controlclient, ipn/ipnlocal, tailcfg: add MapResponse.PopBrowserURL 2022-03-22 09:37:00 -07:00
map_test.go control/controlclient: stop using wgkey. 2021-10-28 14:22:51 -07:00
noise.go net/tsdial: add SystemDial as a wrapper on netns.Dial 2022-04-27 12:02:36 -07:00
noise_test.go control/controlbase: make the protocol version number selectable. 2022-04-07 13:25:28 -07:00
sign.go control/controlclient: update machine certificate signature version 2021-09-17 17:43:06 -04:00
sign_supported.go go.mod: update to latest certstore 2022-03-16 16:10:29 -07:00
sign_supported_test.go go.mod: update to latest certstore 2022-03-16 16:10:29 -07:00
sign_unsupported.go go.mod: update to latest certstore 2022-03-16 16:10:29 -07:00
status.go control/controlclient: store netinfo and hostinfo separately 2022-05-03 15:33:01 -07:00