mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-01 01:44:15 +00:00
MITM freedom RAW TLS: Allow "fromMitm" to be written at any position in verifyPeerCertInNames
, Add checking for alpn
"fromMitm"
https://github.com/XTLS/Xray-core/issues/4348#issuecomment-2643340434
This commit is contained in:
parent
db5f18b98c
commit
d4c7cd02fd
3 changed files with 29 additions and 14 deletions
|
@ -300,7 +300,7 @@ func (r *RandCarrier) verifyPeerCert(rawCerts [][]byte, verifiedChains [][]*x509
|
|||
}
|
||||
}
|
||||
if r.PinnedPeerCertificateChainSha256 == nil {
|
||||
errors.New("peer cert is invalid.")
|
||||
return errors.New("peer cert is invalid.")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue