summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@tailscale.com>2025-09-20 16:48:18 -0700
committerBrad Fitzpatrick <bradfitz@tailscale.com>2025-09-20 16:48:18 -0700
commit920bce0fe5c6a06c61cd579a719f5ed032f78915 (patch)
treed3a3c6bfee32c12152ccfb33dffde609ecc8d516
parentccf61f56f7ff89b74e6f830154a6f83d27d78d15 (diff)
downloadtailscale-bradfitz/foo.tar.xz
tailscale-bradfitz/foo.zip
Change-Id: I4eb57f046d8b40403220e40eb67a31c41adb3a38 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
-rw-r--r--control/controlhttp/client.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/control/controlhttp/client.go b/control/controlhttp/client.go
index 87061c310..d4c6dd79c 100644
--- a/control/controlhttp/client.go
+++ b/control/controlhttp/client.go
@@ -422,6 +422,10 @@ func (a *Dialer) dialHostOpt(ctx context.Context, optAddr netip.Addr, optACEHost
go try(u443)
} // else we lost the race and it started already which is what we want
case u443:
+ if u80 == nil {
+ // We never started a port 80 dial, so just return the port 443 error.
+ return nil, res.err
+ }
err443 = res.err
default:
panic("invalid")