tailscale/ipn
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
..
ipnlocal control/controlclient: store netinfo and hostinfo separately 2022-05-03 15:33:01 -07:00
ipnserver all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
ipnstate wgengine, net/packet, cmd/tailscale: add ICMP echo 2022-05-03 13:03:45 -07:00
localapi cmd/tailscale, etc: make "tailscale up --ssh" fail fast when unavailable 2022-04-18 09:45:46 -07:00
policy ipn/policy: treat DNS service as interesting so it's not filtered out 2021-12-03 12:55:54 -08:00
store util/mak: move tailssh's mapSet into a new package for reuse elsewhere 2022-04-21 21:20:10 -07:00
backend.go wgengine, net/packet, cmd/tailscale: add ICMP echo 2022-05-03 13:03:45 -07:00
doc.go Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
fake_test.go wgengine, net/packet, cmd/tailscale: add ICMP echo 2022-05-03 13:03:45 -07:00
handle.go ipn: remove FakeExpireAfter Backend function 2022-04-29 15:34:53 -07:00
message_test.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
message.go wgengine, net/packet, cmd/tailscale: add ICMP echo 2022-05-03 13:03:45 -07:00
prefs_clone.go wgengine/netstack: add an SSH server experiment 2022-01-24 19:14:13 -08:00
prefs_test.go ipn: remove enforceDefaults option from PrefsFromBytes 2022-04-29 14:08:26 -07:00
prefs.go ipn: remove enforceDefaults option from PrefsFromBytes 2022-04-29 14:08:26 -07:00
store.go ipn/store: add common package for instantiating ipn.StateStores 2022-02-28 13:23:33 -08:00