mirror of
https://github.com/gSpotx2f/ruantiblock_openwrt.git
synced 2026-05-14 14:40:58 +00:00
luci-app-ruantiblock: fixed service.js.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user