splithttp传输方式更名为xhttp

This commit is contained in:
wyx2685
2024-11-26 10:29:12 +09:00
parent 0e29c19f0e
commit c2d5861d7d
5 changed files with 48 additions and 70 deletions

View File

@@ -218,10 +218,10 @@ func buildV2ray(config *conf.Options, nodeInfo *panel.NodeInfo, inbound *coreCon
if err != nil {
return fmt.Errorf("unmarshal httpupgrade settings error: %s", err)
}
case "splithttp":
case "splithttp", "xhttp":
err := json.Unmarshal(v.NetworkSettings, &inbound.StreamSetting.SplitHTTPSettings)
if err != nil {
return fmt.Errorf("unmarshal splithttp settings error: %s", err)
return fmt.Errorf("unmarshal xhttp settings error: %s", err)
}
default:
return errors.New("the network type is not vail")