mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 01:08:33 +00:00
MITM freedom RAW TLS: Report website with unexpected Negotiated Protocol / invalid Domain Fronting certificate
https://github.com/XTLS/Xray-core/issues/4348#issuecomment-2639965524 Needs `"alpn": ["fromMitm"]` / `"verifyPeerCertInNames": ["fromMitm", ...]`.
This commit is contained in:
parent
07c35ed52a
commit
117de1fd3c
2 changed files with 26 additions and 18 deletions
|
@ -89,7 +89,7 @@ func (d *DokodemoDoor) Process(ctx context.Context, network net.Network, conn st
|
|||
destinationOverridden = true
|
||||
ctx = session.ContextWithMitmServerName(ctx, serverName)
|
||||
}
|
||||
if tlsConn.NegotiatedProtocol() == "http/1.1" {
|
||||
if tlsConn.NegotiatedProtocol() != "h2" {
|
||||
ctx = session.ContextWithMitmAlpn11(ctx, true)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue