Drop extended URLTest defaults on stable sing-box

This commit is contained in:
ushan0v
2026-07-12 02:34:33 +03:00
parent 57359d355e
commit 2fb2236d5e
2 changed files with 15 additions and 9 deletions
+2 -1
View File
@@ -1162,7 +1162,7 @@ assert(outbound(xhttp_stable, "depends-on-xhttp") == null, "stable sing-box excl
assert(outbound(xhttp_stable, "recursive-dependent") == null, "stable sing-box recursively excludes XHTTP-dependent detours");
let stable_provider_group = outbound(xhttp_stable, "Provider XHTTP Group");
assert(stable_provider_group && length(stable_provider_group.outbounds) == 1 && stable_provider_group.outbounds[0] == "plain-node", "provider group removes XHTTP member");
assert(stable_provider_group.default == "plain-node", "provider group default falls back to a compatible member");
assert(stable_provider_group.default == null, "stable sing-box provider URLTest removes extended-only default field");
let stable_urltest = outbound(xhttp_stable, "xhttp-urltest-ut_xhttp-out");
assert(stable_urltest && length(stable_urltest.outbounds) == 1 && stable_urltest.outbounds[0] == "plain-node", "URLTest receives only compatible subscription leaves");
let stable_priority = outbound(xhttp_stable, "xhttp-priority-pg_xhttp-out");
@@ -1170,6 +1170,7 @@ assert(stable_priority && length(stable_priority.outbounds) == 1 && stable_prior
let xhttp_extended = cfg("subscription-xhttp-extended");
assert(outbound(xhttp_extended, "xhttp-node") != null, "extended sing-box keeps XHTTP subscription leaf");
assert(outbound(xhttp_extended, "Provider XHTTP Group").default == "xhttp-node", "extended sing-box keeps provider URLTest default");
assert(outbound(xhttp_extended, "depends-on-xhttp").detour == "xhttp-node", "extended sing-box keeps XHTTP detour chain");
assert(outbound(xhttp_extended, "recursive-dependent").detour == "depends-on-xhttp", "extended sing-box keeps recursive detour chain");