tailscale/ipn/localapi
Brad Fitzpatrick 70de16bda7 ipn/localapi: make whois take IP or IP:port as documented, fix capmap netstack lookup
The whois handler was documented as taking IP (e.g. 100.101.102.103)
or IP:port (e.g. usermode 127.0.0.1:1234) but that got broken at some point
and we started requiring a port always. Fix that.

Also, found in the process of adding tests: fix the CapMap lookup in
userspace mode (it was always returning the caps of 127.0.0.1 in
userspace mode). Fix and test that too.

Updates #9714

Change-Id: Ie9a59744286522fa91c4b70ebe89a1e94dbded26
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-10-10 11:05:04 -07:00
..
cert.go ipn/{ipnlocal,localapi}: actually renew certs before expiry (#8731) 2023-07-27 12:29:40 -07:00
debugderp.go all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
disabled_stubs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
localapi_test.go ipn/localapi: make whois take IP or IP:port as documented, fix capmap netstack lookup 2023-10-10 11:05:04 -07:00
localapi.go ipn/localapi: make whois take IP or IP:port as documented, fix capmap netstack lookup 2023-10-10 11:05:04 -07:00
pprof.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00