mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-05-08 14:13:22 +00:00
Browser Dialer: Fix WSS with no early data
Fixes https://github.com/2dust/v2rayNG/issues/5519#issuecomment-4357741914
This commit is contained in:
@@ -75,7 +75,7 @@ func Reload() {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*");
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
w.Write(webpage)
|
||||
}
|
||||
}),
|
||||
@@ -99,11 +99,9 @@ func DialWS(uri string, ed []byte) (*websocket.Conn, error) {
|
||||
StreamResponse: true,
|
||||
}
|
||||
|
||||
if ed != nil {
|
||||
task.Extra = webSocketExtra{
|
||||
Protocol: base64.RawURLEncoding.EncodeToString(ed),
|
||||
}
|
||||
}
|
||||
|
||||
return dialTask(task)
|
||||
}
|
||||
@@ -222,4 +220,3 @@ func CheckOK(conn *websocket.Conn) error {
|
||||
func init() {
|
||||
Reload()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user