feat: xhttp xmux

This commit is contained in:
FUFSoB committed 2026-10-18 16:53:08 +05:00
1 parent 2fc8ef5567
commit a41fbc10e6
16 files changed
+231 -18

No files matched your search

+7
View File
@@ -644,6 +644,12 @@ let
}
.${cfg.debug.logLevel};
connectionLogEnabled = cfg.enable && clashApiEnabled && cfg.debug.connectionLog.enable;
# proxy.xray.xhttpXmux, as a jq step over one XRay outbound: an XHTTP one whose link set no
# xmux takes it. JSON is a jq literal.
xhttpXmuxJq = lib.optionalString (xrayCfg.xhttpXmux != null) ''
| if .streamSettings.network? == "xhttp" and ((.streamSettings.xhttpSettings.extra.xmux? // {}) == {})
then .streamSettings.xhttpSettings.extra.xmux = ${builtins.toJSON xrayCfg.xhttpXmux}
else . end'';
perAppZapretEnabled = perAppZapretCfg.enable;
# The global units each per-app backend steps aside for (constants.refuseUnderGlobal), as
# systemctl patterns: they stop it as they start, and the standby unit waits them out.
@@ -1260,6 +1266,7 @@ in
singBoxLogLevel
xrayLogLevel
connectionLogEnabled
xhttpXmuxJq
singBoxCfg
xrayCfg
proxyEnabled