HTTP outbound: Read negotiated protocol from uTLS (#5251)

This commit is contained in:
hax0r31337
2025-11-21 03:29:25 +01:00
committed by GitHub
parent acfda31e59
commit e914183996

View File

@@ -308,6 +308,12 @@ func setUpHTTPTunnel(ctx context.Context, dest net.Destination, target string, u
return nil, err
}
nextProto = tlsConn.ConnectionState().NegotiatedProtocol
} else if tlsConn, ok := iConn.(*tls.UConn); ok {
if err := tlsConn.HandshakeContext(ctx); err != nil {
rawConn.Close()
return nil, err
}
nextProto = tlsConn.ConnectionState().NegotiatedProtocol
}
switch nextProto {