mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-11-30 21:58:39 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8d14de333 |
@@ -130,6 +130,14 @@ func (c *UConn) WebsocketHandshakeContext(ctx context.Context) error {
|
||||
config.NextProtos = []string{"http/1.1"}
|
||||
return c.HandshakeContext(ctx)
|
||||
}
|
||||
// Chrome won't send ApplicationSettingsExtension for h1 request
|
||||
if slices.Equal(ALPN, []string{"http/1.1"}) {
|
||||
newExt := slices.DeleteFunc(c.Extensions, func(extension utls.TLSExtension) bool {
|
||||
_, ok := extension.(*utls.ApplicationSettingsExtensionNew)
|
||||
return ok
|
||||
})
|
||||
c.Extensions = newExt
|
||||
}
|
||||
// Iterate over extensions and check for utls.ALPNExtension
|
||||
hasALPNExtension := false
|
||||
for _, extension := range c.Extensions {
|
||||
|
||||
Reference in New Issue
Block a user