add func to insert resolve action in route.rules section

This commit is contained in:
romanvht
2026-05-09 02:49:40 +10:00
parent 21085f3ac3
commit 8b2abc0b28
5 changed files with 68 additions and 1 deletions

View File

@@ -683,6 +683,17 @@ function createSectionContent(section) {
);
o.rmempty = false;
o.depends("mixed_proxy_enabled", "1");
o = section.option(
form.Flag,
"resolve_real_ip_for_routing",
_("Resolve real IP for routing"),
_("Enable DNS resolve to get real IP when routing"),
);
o.default = "0";
o.rmempty = false;
o.depends("connection_type", "proxy");
o.depends("connection_type", "vpn");
}
const EntryPoint = {

View File

@@ -431,6 +431,12 @@ msgstr "Использование памяти"
msgid "Mixed Proxy Port"
msgstr "Порт смешанного прокси"
msgid "Resolve real IP for routing"
msgstr "Получать реальный IP при роутинге"
msgid "Enable DNS resolve to get real IP when routing"
msgstr "Включить разрешение DNS вне FakeIP для получения реальных IP-адресов при маршрутизации"
msgid "Monitored Interfaces"
msgstr "Наблюдаемые интерфейсы"

View File

@@ -283,6 +283,14 @@ msgstr ""
msgid "Enable the mixed proxy, allowing this section to route traffic through both HTTP and SOCKS proxies"
msgstr ""
#: ../luci-app-podkop/htdocs/luci-static/resources/view/podkop/section.js:678
msgid "Resolve real IP for routing"
msgstr ""
#: ../luci-app-podkop/htdocs/luci-static/resources/view/podkop/section.js:679
msgid "Enable DNS resolve to get real IP when routing"
msgstr ""
#: ../luci-app-podkop/htdocs/luci-static/resources/view/podkop/settings.js:237
msgid "Enable YACD"
msgstr ""