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
@@ -1806,6 +1806,31 @@ function createSettingsContent(section, capabilities) {
return true;
};
o = section.taboption(
"network",
form.Flag,
"route_router_traffic",
_("Route Router's Own Traffic"),
_(
"Route local traffic originating directly from the router (e.g. wget, curl, opkg, torrent clients on the router) through Tachyon.",
),
);
configureDownloadViaProxyFlag(o, "route_router_traffic_section");
o = section.taboption(
"network",
form.ListValue,
"route_router_traffic_section",
_("Router Traffic Target Section"),
_("Select the section to route router's own traffic through."),
);
o.depends("route_router_traffic", "1");
configureDownloadSectionOption(
o,
"route_router_traffic_section",
capabilities,
);
o = section.taboption(
"services",
form.Flag,