luci-app-ruantiblock: fixed service.js.

This commit is contained in:
gSpot
2025-04-30 18:35:48 +03:00
parent 53dfb1ffeb
commit f1839c9388
4 changed files with 29 additions and 4 deletions
+11 -1
View File
@@ -1,7 +1,17 @@
## Ruantiblock
Обход блокировок в OpenWrt с помощью Tor или VPN.
Выборочная маршрутизация для обхода блокировок в OpenWrt.
* Решение построено на стандартных системных службах и утилитах OpenWrt (nftables, dnsmasq).
* Поддерживаются L3 VPN с маршрутизацией на сетевой интерфейс (OpenVPN, Wireguard, PPTP, Sing-box в режиме tun и пр.), прозрачные прокси с перенаправлением на порт (Sing-box в режиме TProxy, Shadowsock-libev, Redsocks и пр.), Tor.
* Перенаправление трафика на основе доменов и IP адресов.
* Гибкие настройки для пользовательских списков, использование нескольких VPN/прокси для разных списков с приоритетами.
* Интеграция с веб-интерфейсом OpenWrt.
Подробно об установке и настройке: [https://github.com/gSpotx2f/ruantiblock_openwrt/wiki](https://github.com/gSpotx2f/ruantiblock_openwrt/wiki)
+1 -1
View File
@@ -12,7 +12,7 @@ HTTPS_DNS_PROXY=1
OWRT_VERSION="current"
RUAB_VERSION="2.1.6-r1"
RUAB_MOD_LUA_VERSION="2.1.6-r1"
RUAB_LUCI_APP_VERSION="2.1.6-r1"
RUAB_LUCI_APP_VERSION="2.1.6-r2"
BASE_URL="https://raw.githubusercontent.com/gSpotx2f/packages-openwrt/master"
PKG_DIR="/tmp"
+1 -1
View File
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-ruantiblock
PKG_VERSION:=2.1.6
PKG_RELEASE:=1
PKG_RELEASE:=2
LUCI_TITLE:=LuCI support for ruantiblock
LUCI_DEPENDS:=+ruantiblock
LUCI_PKGARCH:=all
@@ -32,7 +32,7 @@ return view.extend({
dnsmasqCfgDirsSelect: null,
cancelButton : E('button', {
cancelButton : E('button', {
'id' : 'btn_cancel',
'class': btn_style_neutral,
'click': ui.hideModal,
@@ -64,6 +64,21 @@ return view.extend({
};
};
if(this.currentDnsmasqCfgDir) {
let match = false;
for(let i of available_cfg_dirs) {
if(i[1] == this.currentDnsmasqCfgDir) {
match = true;
break;
};
};
if(!match) {
available_cfg_dirs.unshift(
[ `${this.currentDnsmasqCfgDir} [ UCI ]`, this.currentDnsmasqCfgDir ]
);
};
};
this.dnsmasqCfgDirsSelect = E('select', {
'id' : 'dnsmasq_confdirs_list',
'class': "cbi-input-select",