tailscale/ipn/ipnserver
Andrew Lytvynov 55cd5c575b
ipn/localapi: only perform local-admin check in serveServeConfig (#10163)
On unix systems, the check involves executing sudo, which is slow.
Instead of doing it for every incoming request, move the logic into
localapi serveServeConfig handler and do it as needed.

Updates tailscale/corp#15405

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
2023-11-09 12:55:46 -08:00
..
proxyconnect_js.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
proxyconnect.go logpolicy, various: allow overriding log function 2023-07-10 18:08:50 -04:00
server_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
server.go ipn/localapi: only perform local-admin check in serveServeConfig (#10163) 2023-11-09 12:55:46 -08:00