Joe Tsai 6a1fd74695 tsweb: avoid http-to-https redirect for localhost
If the client is connecting over loopback, then avoid the
http-to-https redirect since this is connection within the kernel,
rather than over untrusted network, and also because
https://localhost is unlikely to work as there isn't a CA
that issues certs for localhost.

Updates tailscale/corp#11038

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2024-10-15 16:09:07 -07:00
..