mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00:00
Refine fingerprints
Fixes https://github.com/XTLS/Xray-core/issues/1577
This commit is contained in:
parent
74416570d4
commit
dc72cf2c78
6 changed files with 60 additions and 50 deletions
|
@ -122,7 +122,7 @@ func getGrpcClient(ctx context.Context, dest net.Destination, streamSettings *in
|
|||
|
||||
if tlsConfig != nil {
|
||||
var transportCredential credentials.TransportCredentials
|
||||
if fingerprint, exists := tls.GetFingerprint(ctx, tlsConfig.Fingerprint); exists {
|
||||
if fingerprint := tls.GetFingerprint(tlsConfig.Fingerprint); fingerprint != nil {
|
||||
transportCredential = tls.NewGrpcUtls(tlsConfig.GetTLSConfig(), fingerprint)
|
||||
} else { // Fallback to normal gRPC TLS
|
||||
transportCredential = credentials.NewTLS(tlsConfig.GetTLSConfig())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue