feat: xhttp xmux
This commit is contained in:
16 files changed
+231
-18
No files matched your search
@@ -30,6 +30,7 @@ let
|
||||
hybridTproxyConfig
|
||||
hybridTunConfig
|
||||
hybridTunStartScript
|
||||
hybridXmuxStartScript
|
||||
hybridXrayRawStartScript
|
||||
;
|
||||
in
|
||||
@@ -90,6 +91,10 @@ in
|
||||
assert pkgs.lib.hasInfix "--backend sing-box" hybridStartScript;
|
||||
assert pkgs.lib.hasInfix "--backend xray" hybridStartScript;
|
||||
assert pkgs.lib.hasInfix "_proxy_suite_add_xray_sidecar_ob" hybridStartScript;
|
||||
# proxy.xray.xhttpXmux reaches the sidecar's outbounds, and nothing without it.
|
||||
assert !pkgs.lib.hasInfix "xmux" hybridStartScript;
|
||||
assert pkgs.lib.hasInfix ''.streamSettings.xhttpSettings.extra.xmux = {"hKeepAlivePeriod":10}''
|
||||
hybridXmuxStartScript;
|
||||
# The outbounds test pings a sidecar outbound's real server, over UDP when XRay dials
|
||||
# XHTTP over HTTP/3 or mKCP: no TCP handshake to time there.
|
||||
assert pkgs.lib.hasInfix ''.streamSettings.tlsSettings.alpn? == ["h3"]'' hybridStartScript;
|
||||
|
||||
@@ -36,6 +36,10 @@ let
|
||||
};
|
||||
};
|
||||
hybridFixture = evalProxySuite [ hybridModule ];
|
||||
hybridXmuxStartScript = startScript (evalProxySuite [
|
||||
hybridModule
|
||||
{ services.proxy-suite.proxy.xray.xhttpXmux.hKeepAlivePeriod = 10; }
|
||||
]);
|
||||
hybridTproxyConfig = mkTProxyConfig hybridFixture;
|
||||
hybridTunConfig = mkTunConfig hybridFixture;
|
||||
hybridStartScript = startScript hybridFixture;
|
||||
@@ -106,6 +110,7 @@ in
|
||||
hybridTproxyConfig
|
||||
hybridTunConfig
|
||||
hybridTunStartScript
|
||||
hybridXmuxStartScript
|
||||
hybridXrayRawStartScript
|
||||
;
|
||||
}
|
||||
@@ -96,6 +96,11 @@ pkgs.lib.mapAttrs mkPythonCheck {
|
||||
ZBARIMG = "${pkgs.zbar}/bin/zbarimg";
|
||||
};
|
||||
};
|
||||
# The per-app routes' DNS forwarder: its log lines, and a lost query asked again.
|
||||
per-app-dns = {
|
||||
file = "${scripts}/test-per-app-dns.py";
|
||||
env = withPath scripts;
|
||||
};
|
||||
# The NFQWS_OPT rewrites the zapret v1 package build applies.
|
||||
patch-zapret-config = {
|
||||
file = "${scripts}/test-patch-zapret-config.py";
|
||||
|
||||
Reference in new issue
Block a user