Change-Id: I4eb57f046d8b40403220e40eb67a31c41adb3a38
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2025-09-20 16:48:18 -07:00
parent ccf61f56f7
commit 920bce0fe5

View File

@ -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")