tailscale/control
Andrea Gottardo 6db220b478
controlclient: do not set HTTPS port for any private coordination server IP (#14564)
Fixes tailscale/tailscale#14563

When creating a NoiseClient, ensure that if any private IP address is provided, with both an `http` scheme and an explicit port number, we do not ever attempt to use HTTPS. We were only handling the case of `127.0.0.1` and `localhost`, but `192.168.x.y` is a private IP as well. This uses the `netip` package to check and adds some logging in case we ever need to troubleshoot this.

Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
2025-01-07 10:24:32 -08:00
..
controlbase all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
controlclient controlclient: do not set HTTPS port for any private coordination server IP (#14564) 2025-01-07 10:24:32 -08:00
controlhttp control/controlhttp: set *health.Tracker in tests 2024-11-26 18:05:05 -05:00
controlknobs health: introduce captive-portal-detected Warnable (#12707) 2024-07-26 11:25:55 -07:00