Skip to content

Commit

Permalink
fix: splithttp
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Dec 19, 2024
1 parent 4c69845 commit 113036b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ray2sing/xray_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ func getStreamSettingsXray(decoded map[string]string) (map[string]any, error) {
// net = "http"
// }
res := map[string]any{}

if net == "splithttp" {
net = "xhttp"
}
res["network"] = net
switch net {
case "tcp":
Expand All @@ -188,7 +190,7 @@ func getStreamSettingsXray(decoded map[string]string) (map[string]any, error) {
case "quic":
res[net+"Settings"] = getquic(decoded)
decoded["alpn"] = "h3"
case "splithttp":
case "xhttp":
res[net+"Settings"] = getsplithttp(decoded)
case "h2":
res[net+"Settings"] = geth2(decoded)
Expand Down

0 comments on commit 113036b

Please sign in to comment.