mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-02 03:27:35 +03:00
fix: do not change outer sni back to real sni
This commit is contained in:
parent
bea2f33a11
commit
fa20ecfcc0
1 changed files with 0 additions and 2 deletions
|
@ -587,14 +587,12 @@ func (uconn *UConn) MarshalClientHello() error {
|
|||
return fmt.Errorf("sni extension missing while attempting ECH")
|
||||
}
|
||||
|
||||
oldSNI := uconn.Extensions[sniExtIdex]
|
||||
uconn.Extensions[sniExtIdex] = &SNIExtension{
|
||||
ServerName: string(ech.config.PublicName),
|
||||
}
|
||||
|
||||
uconn.computeAndUpdateOuterECHExtension(inner, ech, true)
|
||||
|
||||
uconn.Extensions[sniExtIdex] = oldSNI
|
||||
uconn.echCtx = ech
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue