Add xhttp mode for xray

https://github.com/XTLS/Xray-core/pull/3994
This commit is contained in:
2dust
2024-11-14 09:48:43 +08:00
parent 04efed2079
commit d781c768e9
12 changed files with 80 additions and 4 deletions
@@ -945,6 +945,11 @@ namespace ServiceLib.Services.CoreConfig
{
xhttpSettings.host = host;
}
if (Utils.IsNotEmpty(node.HeaderType) && Global.XhttpMode.Contains(node.HeaderType))
{
xhttpSettings.mode = node.HeaderType;
}
streamSettings.xhttpSettings = xhttpSettings;
break;