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,
+12
View File
@@ -6742,3 +6742,15 @@ msgstr "Блокировать: "
msgid "Traffic from these IP addresses will never be routed through this section, even if other conditions match."
msgstr "Трафик от этих IP-адресов никогда не будет маршрутизирован через эту секцию, даже если другие условия совпадают."
msgid "Route Router's Own Traffic"
msgstr "Маршрутизировать собственный трафик роутера"
msgid "Route local traffic originating directly from the router (e.g. wget, curl, opkg, torrent clients on the router) through Tachyon."
msgstr "Направлять локальный трафик, исходящий непосредственно с роутера (например, wget, curl, opkg, торрент-клиент на роутере), через Tachyon."
msgid "Router Traffic Target Section"
msgstr "Секция для трафика роутера"
msgid "Select the section to route router's own traffic through."
msgstr "Выберите секцию для маршрутизации трафика роутера."