mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-01 06:09:08 +03:00
fix: Fix secondary route configuration
This commit is contained in:
@@ -5,7 +5,7 @@ PKG_VERSION:=0.2.3
|
||||
PKG_RELEASE:=1
|
||||
|
||||
LUCI_TITLE:=LuCI podkop app
|
||||
LUCI_DEPENDS:=+podkop
|
||||
LUCI_DEPENDS:=+luci-base +podkop
|
||||
LUCI_PKGARCH:=all
|
||||
LUCI_LANG.ru:=Русский (Russian)
|
||||
LUCI_LANG.en:=English
|
||||
|
||||
@@ -13,6 +13,7 @@ return view.extend({
|
||||
s = m.section(form.TypedSection, 'main');
|
||||
s.anonymous = true;
|
||||
|
||||
// Basic Settings tab
|
||||
o = s.tab('basic', _('Basic Settings'));
|
||||
|
||||
o = s.taboption('basic', form.ListValue, 'mode', _('Connection Type'), _('Select between VPN and Proxy connection methods for traffic routing'));
|
||||
@@ -44,7 +45,7 @@ return view.extend({
|
||||
console.error('Error fetching devices:', error);
|
||||
}
|
||||
|
||||
o = s.taboption('basic', form.Flag, 'domain_list_enabled', _('Predefined Domain Lists'), _('Enable routing based on predefined domain lists for specific regions'));
|
||||
o = s.taboption('basic', form.Flag, 'domain_list_enabled', _('Predefined Domain Lists'), _('<a href="https://github.com/itdoginfo/allow-domains" target="_blank">github.com/itdoginfo/allow-domains</a>'));
|
||||
o.default = '0';
|
||||
o.rmempty = false;
|
||||
|
||||
@@ -68,6 +69,7 @@ return view.extend({
|
||||
o.depends('subnets_list_enabled', '1');
|
||||
o.rmempty = false;
|
||||
|
||||
// User Settings tab
|
||||
o = s.tab('custom', _('User Settings'));
|
||||
|
||||
o = s.taboption('custom', form.Flag, 'custom_domains_list_enabled', _('User Domain List'), _('Enable and manage your custom list of domains for selective routing'));
|
||||
@@ -176,6 +178,7 @@ return view.extend({
|
||||
}
|
||||
};
|
||||
|
||||
// Additional Settings tab
|
||||
o = s.tab('additional', _('Additional Settings'));
|
||||
|
||||
o = s.taboption('additional', form.Flag, 'delist_domains_enabled', _('Domain Exclusions'), _('Exclude specific domains from routing rules'));
|
||||
@@ -273,13 +276,14 @@ return view.extend({
|
||||
o.default = '0 4 * * *';
|
||||
o.rmempty = false;
|
||||
|
||||
o = s.tab('second_settings', _('Alternative Route'));
|
||||
// Secondary Route tab
|
||||
o = s.tab('second_settings', _('Secondary Route'));
|
||||
|
||||
o = s.taboption('second_settings', form.Flag, 'second_enable', _('Alternative Route Enable'), _('Enable secondary routing configuration'));
|
||||
o = s.taboption('second_settings', form.Flag, 'second_enable', _('Secondary Route Enable'), _('Enable secondary routing configuration'));
|
||||
o.default = '0';
|
||||
o.rmempty = false;
|
||||
|
||||
o = s.taboption('second_settings', form.ListValue, 'second_mode', _('Connection Type'), _('Select between VPN and Proxy for alternative route'));
|
||||
o = s.taboption('second_settings', form.ListValue, 'second_mode', _('Connection Type'), _('Select between VPN and Proxy for secondary route'));
|
||||
o.value('vpn', ('VPN'));
|
||||
o.value('proxy', ('Proxy'));
|
||||
o.depends('second_enable', '1');
|
||||
@@ -308,23 +312,23 @@ return view.extend({
|
||||
console.error('Error fetching devices:', error);
|
||||
}
|
||||
|
||||
o = s.taboption('second_settings', form.Flag, 'domain_service_enabled', _('Service List Enable'), _('Enable predefined service lists for alternative routing'));
|
||||
o = s.taboption('second_settings', form.Flag, 'domain_service_enabled', _('Service Domain List Enable'), _('Enable predefined service domain lists for secondary routing'));
|
||||
o.default = '0';
|
||||
o.rmempty = false;
|
||||
o.depends('second_enable', '1');
|
||||
|
||||
o = s.taboption('second_settings', form.ListValue, 'service_list', _('Service List'), _('Select predefined services for alternative routing'));
|
||||
o = s.taboption('second_settings', form.ListValue, 'service_list', _('Service List'), _('Select predefined services for secondary routing'));
|
||||
o.placeholder = 'placeholder';
|
||||
o.value('youtube', 'Youtube');
|
||||
o.depends('domain_service_enabled', '1');
|
||||
o.rmempty = false;
|
||||
|
||||
o = s.taboption('second_settings', form.Flag, 'second_custom_domains_list_enabled', _('Alternative Domain List'), _('Configure custom domains for alternative routing path'));
|
||||
o = s.taboption('second_settings', form.Flag, 'second_custom_domains_list_enabled', _('Secondary Domain List'), _('Configure custom domains for secondary routing path'));
|
||||
o.default = '0';
|
||||
o.rmempty = false;
|
||||
o.depends('second_enable', '1');
|
||||
|
||||
o = s.taboption('second_settings', form.DynamicList, 'second_custom_domains', _('Alternative Domains'), _('Enter domain names without protocols (example: sub.example.com or example.com)'));
|
||||
o = s.taboption('second_settings', form.DynamicList, 'second_custom_domains', _('Secondary Domains'), _('Enter domain names without protocols (example: sub.example.com or example.com)'));
|
||||
o.placeholder = 'Domains list';
|
||||
o.depends('second_custom_domains_list_enabled', '1');
|
||||
o.rmempty = false;
|
||||
@@ -341,12 +345,12 @@ return view.extend({
|
||||
return true;
|
||||
};
|
||||
|
||||
o = s.taboption('second_settings', form.Flag, 'second_custom_subnets_list_enabled', _('Alternative Subnet List'), _('Configure custom subnets for alternative routing path'));
|
||||
o = s.taboption('second_settings', form.Flag, 'second_custom_subnets_list_enabled', _('Secondary Subnet List'), _('Configure custom subnets for secondary routing path'));
|
||||
o.default = '0';
|
||||
o.rmempty = false;
|
||||
o.depends('second_enable', '1');
|
||||
|
||||
o = s.taboption('second_settings', form.DynamicList, 'second_custom_subnets', _('Alternative Subnets'), _('Enter subnet in CIDR notation (example: 192.168.1.0/24)'));
|
||||
o = s.taboption('second_settings', form.DynamicList, 'second_custom_subnets', _('Secondary Subnets'), _('Enter subnet in CIDR notation (example: 192.168.1.0/24)'));
|
||||
o.placeholder = 'Subnets list';
|
||||
o.depends('second_custom_subnets_list_enabled', '1');
|
||||
o.rmempty = false;
|
||||
@@ -381,4 +385,4 @@ return view.extend({
|
||||
|
||||
return m.render();
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -28,9 +28,6 @@ msgstr "Выберите сетевой интерфейс для VPN подкл
|
||||
msgid "Predefined Domain Lists"
|
||||
msgstr "Предустановленные списки доменов"
|
||||
|
||||
msgid "Enable routing based on predefined domain lists for specific regions"
|
||||
msgstr "Включить маршрутизацию на основе предустановленных списков доменов для определенных регионов"
|
||||
|
||||
msgid "Domain List"
|
||||
msgstr "Список доменов"
|
||||
|
||||
@@ -175,44 +172,44 @@ msgstr "Исключить NTP"
|
||||
msgid "For issues with open connections sing-box"
|
||||
msgstr "Для проблем с открытыми соединениями sing-box"
|
||||
|
||||
msgid "Alternative Route"
|
||||
msgstr "Альтернативный маршрут"
|
||||
msgid "Secondary Route"
|
||||
msgstr "Вторичный маршрут"
|
||||
|
||||
msgid "Alternative Route Enable"
|
||||
msgstr "Включить альтернативный маршрут"
|
||||
msgid "Secondary Route Enable"
|
||||
msgstr "Включить вторичный маршрут"
|
||||
|
||||
msgid "Enable secondary routing configuration"
|
||||
msgstr "Включить вторичную конфигурацию маршрутизации"
|
||||
|
||||
msgid "Service List Enable"
|
||||
msgstr "Включить список сервисов"
|
||||
msgid "Service Domain List Enable"
|
||||
msgstr "Включить список доменов сервисов"
|
||||
|
||||
msgid "Enable predefined service lists for alternative routing"
|
||||
msgstr "Включить предустановленные списки сервисов для альтернативной маршрутизации"
|
||||
msgid "Enable predefined service domain lists for secondary routing"
|
||||
msgstr "Включить предустановленные списки доменов сервисов для вторичной маршрутизации"
|
||||
|
||||
msgid "Service List"
|
||||
msgstr "Список сервисов"
|
||||
|
||||
msgid "Select predefined services for alternative routing"
|
||||
msgstr "Выберите предустановленные сервисы для альтернативной маршрутизации"
|
||||
msgid "Select predefined services for secondary routing"
|
||||
msgstr "Выберите предустановленные сервисы для вторичной маршрутизации"
|
||||
|
||||
msgid "Alternative Domain List"
|
||||
msgstr "Альтернативный список доменов"
|
||||
msgid "Secondary Domain List"
|
||||
msgstr "Вторичный список доменов"
|
||||
|
||||
msgid "Configure custom domains for alternative routing path"
|
||||
msgstr "Настройте пользовательские домены для альтернативного маршрута"
|
||||
msgid "Configure custom domains for secondary routing path"
|
||||
msgstr "Настройте пользовательские домены для вторичного маршрута"
|
||||
|
||||
msgid "Alternative Domains"
|
||||
msgstr "Альтернативные домены"
|
||||
msgid "Secondary Domains"
|
||||
msgstr "Вторичные домены"
|
||||
|
||||
msgid "Alternative Subnet List"
|
||||
msgstr "Альтернативный список подсетей"
|
||||
msgid "Secondary Subnet List"
|
||||
msgstr "Вторичный список подсетей"
|
||||
|
||||
msgid "Configure custom subnets for alternative routing path"
|
||||
msgstr "Настройте пользовательские подсети для альтернативного маршрута"
|
||||
msgid "Configure custom subnets for secondary routing path"
|
||||
msgstr "Настройте пользовательские подсети для вторичного маршрута"
|
||||
|
||||
msgid "Alternative Subnets"
|
||||
msgstr "Альтернативные подсети"
|
||||
msgid "Secondary Subnets"
|
||||
msgstr "Вторичные подсети"
|
||||
|
||||
msgid "Invalid domain format. Enter domain without protocol (example: sub.example.com)"
|
||||
msgstr "Неверный формат домена. Введите домен без протокола (пример: sub.example.com)"
|
||||
|
||||
@@ -33,6 +33,102 @@ msgstr ""
|
||||
msgid "Select network interface for VPN connection"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Predefined Domain Lists"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Domain List"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Select a predefined domain list"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Predefined Service Networks"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Enable routing for popular services like Twitter, Meta, and Discord"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Service Networks"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Select predefined service networks for routing"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "User Settings"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Secondary Route"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Secondary Route Enable"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Enable secondary routing configuration"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Service Domain List Enable"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Enable predefined service domain lists for secondary routing"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Service List"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Select predefined services for secondary routing"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Secondary Domain List"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Configure custom domains for secondary routing path"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Secondary Domains"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Secondary Subnet List"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Configure custom subnets for secondary routing path"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Secondary Subnets"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Additional Settings"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Domain Exclusions"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Excluded Domains"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "List Update Frequency"
|
||||
msgstr ""
|
||||
@@ -74,43 +170,23 @@ msgid "Once a week on Monday at 04:00"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Predefined Domain Lists"
|
||||
msgid "Yacd enable"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Enable routing based on predefined domain lists for specific regions"
|
||||
msgid "Mixed enable"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Domain List"
|
||||
msgid "Browser port: 2080"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Select a predefined domain list"
|
||||
msgid "Exclude NTP"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Predefined Service Networks"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Enable routing for popular services like Twitter, Meta, and Discord"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "User Settings"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Alternative Route"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Alternative Route Enable"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Enable secondary routing configuration"
|
||||
msgid "For issues with open connections sing-box"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
@@ -130,21 +206,13 @@ msgid "Invalid subnet format. Use format: X.X.X.X/Y (like 192.168.1.0/24)"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Yacd enable"
|
||||
msgid "IP address parts must be between 0 and 255"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Mixed enable"
|
||||
msgid "CIDR must be between 0 and 32"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Browser port: 2080"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "Exclude NTP"
|
||||
msgstr ""
|
||||
|
||||
#: applications/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js:0
|
||||
msgid "For issues with open connections sing-box"
|
||||
msgid "Invalid IP format. Use format: X.X.X.X (like 192.168.1.1)"
|
||||
msgstr ""
|
||||
Reference in New Issue
Block a user