feat(routing): route router's own traffic through designated section

This commit is contained in:
Dushnilin
2026-09-15 09:30:04 +03:00
parent 45e6a6ae60
commit 2d00141696
14 changed files with 329 additions and 1 deletions
+2
View File
@@ -78,6 +78,8 @@ function config(settings, runtime) {
if (type(runtime) == "object" && type(runtime.dns_health_inbounds) == "array")
for (let inbound in runtime.dns_health_inbounds)
push(dns_hijack_inbounds, inbound);
if (bool_option(settings, "route_router_traffic", false) && option(settings, "route_router_traffic_section", "") != "")
push(sniff_inbounds, runtime_constants.REDIRECT_INBOUND_TAG);
let rules = [
{ action: "sniff", inbound: sniff_inbounds },
{ action: "hijack-dns", inbound: dns_hijack_inbounds }