You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
ipnlocal control/controlclient: store netinfo and hostinfo separately 3 years ago
ipnserver all: use any instead of interface{} 3 years ago
ipnstate wgengine, net/packet, cmd/tailscale: add ICMP echo 3 years ago
localapi cmd/tailscale, etc: make "tailscale up --ssh" fail fast when unavailable 3 years ago
policy ipn/policy: treat DNS service as interesting so it's not filtered out 3 years ago
store util/mak: move tailssh's mapSet into a new package for reuse elsewhere 3 years ago
backend.go wgengine, net/packet, cmd/tailscale: add ICMP echo 3 years ago
doc.go Move Linux client & common packages into a public repo. 5 years ago
fake_test.go wgengine, net/packet, cmd/tailscale: add ICMP echo 3 years ago
handle.go ipn: remove FakeExpireAfter Backend function 3 years ago
message.go wgengine, net/packet, cmd/tailscale: add ICMP echo 3 years ago
message_test.go all: use any instead of interface{} 3 years ago
prefs.go ipn: remove enforceDefaults option from PrefsFromBytes 3 years ago
prefs_clone.go wgengine/netstack: add an SSH server experiment 3 years ago
prefs_test.go ipn: remove enforceDefaults option from PrefsFromBytes 3 years ago
store.go ipn/store: add common package for instantiating ipn.StateStores 3 years ago