tailscale/ipn
Joe Tsai ae89482f25
ipn/ipnlocal: fix LocalBackend.WhoIs for self (#9472)
9538e9f970 broke LocalBackend.WhoIs
where you can no longer lookup yourself in WhoIs.
This occurs because the LocalBackend.peers map only contains peers.
If we fail to lookup a peer, double-check whether it is ourself.

Fixes #9470

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
Co-authored-by: Rhea Ghosh <rhea@tailscale.com>
2023-09-20 13:46:19 -07:00
..
ipnauth all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipnlocal ipn/ipnlocal: fix LocalBackend.WhoIs for self (#9472) 2023-09-20 13:46:19 -07:00
ipnserver logpolicy, various: allow overriding log function 2023-07-10 18:08:50 -04:00
ipnstate tailcfg: add NodeCapMap 2023-09-18 12:00:34 -07:00
localapi ipn/ipnlocal: fix missing controlknobs.Knobs plumbing 2023-09-12 06:17:14 -07:00
policy ipn: prefer allow/denylist terminology 2023-04-04 08:02:50 -07:00
store cmd/k8s-operator,ipn/store/kubestore: patch secrets instead of updating 2023-08-29 13:24:05 -07:00
backend.go ipn, ipn/ipnlocal: add session identifier for WatchIPNBus 2023-09-05 13:30:04 -04:00
doc.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
fake_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipn_clone.go cmd/tailscale/cli: use optimistic concurrency control on SetServeConfig 2023-09-13 15:08:41 -05:00
ipn_view.go cmd/tailscale/cli: use optimistic concurrency control on SetServeConfig 2023-09-13 15:08:41 -05:00
prefs.go ipn/ipnlocal: add tailnet MagicDNS name to ipn.LoginProfile 2023-09-18 13:58:32 -04:00
prefs_test.go cmd/tailscale,ipn: add auto-update flags and prefs (#8861) 2023-09-01 13:45:12 -07:00
serve.go tailcfg: define a type for NodeCapability 2023-09-17 13:16:29 -07:00
serve_test.go tailcfg: define a type for NodeCapability 2023-09-17 13:16:29 -07:00
store.go ipn: avoid useless no-op WriteState calls 2023-08-07 08:44:24 -07:00
store_test.go ipn: avoid useless no-op WriteState calls 2023-08-07 08:44:24 -07:00