You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
11 months ago
..
controlbase all: use Go 1.22 range-over-int 2 years ago
controlclient controlclient: do not set HTTPS port for any private coordination server IP (#14564) 11 months ago
controlhttp control/controlhttp: set *health.Tracker in tests 1 year ago
controlknobs health: introduce captive-portal-detected Warnable (#12707) 1 year ago