tailscale/control
Brad Fitzpatrick 8fd471ce57 control/controlclient: disable https on for http://localhost:$port URLs
Previously we required the program to be running in a test or have
TS_CONTROL_IS_PLAINTEXT_HTTP before we disabled its https fallback
on "http" schema control URLs to localhost with ports.

But nobody accidentally does all three of "http", explicit port
number, localhost and doesn't mean it. And when they mean it, they're
testing a localhost dev control server (like I was) and don't want 443
getting involved.

As of the changes for #13597, this became more annoying in that we
were trying to use a port which wasn't even available.

Updates #13597

Change-Id: Icd00bca56043d2da58ab31de7aa05a3b269c490f
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-11-14 12:12:16 -08:00
..
controlbase all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
controlclient control/controlclient: disable https on for http://localhost:$port URLs 2024-11-14 12:12:16 -08:00
controlhttp derp/derphttp: don't link websockets other than on GOOS=js 2024-11-07 22:29:41 -08:00
controlknobs health: introduce captive-portal-detected Warnable (#12707) 2024-07-26 11:25:55 -07:00