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
|
## 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)
|
Подробно об установке и настройке: [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"
|
OWRT_VERSION="current"
|
||||||
RUAB_VERSION="2.1.6-r1"
|
RUAB_VERSION="2.1.6-r1"
|
||||||
RUAB_MOD_LUA_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"
|
BASE_URL="https://raw.githubusercontent.com/gSpotx2f/packages-openwrt/master"
|
||||||
PKG_DIR="/tmp"
|
PKG_DIR="/tmp"
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-ruantiblock
|
PKG_NAME:=luci-app-ruantiblock
|
||||||
PKG_VERSION:=2.1.6
|
PKG_VERSION:=2.1.6
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
LUCI_TITLE:=LuCI support for ruantiblock
|
LUCI_TITLE:=LuCI support for ruantiblock
|
||||||
LUCI_DEPENDS:=+ruantiblock
|
LUCI_DEPENDS:=+ruantiblock
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ return view.extend({
|
|||||||
|
|
||||||
dnsmasqCfgDirsSelect: null,
|
dnsmasqCfgDirsSelect: null,
|
||||||
|
|
||||||
cancelButton : E('button', {
|
cancelButton : E('button', {
|
||||||
'id' : 'btn_cancel',
|
'id' : 'btn_cancel',
|
||||||
'class': btn_style_neutral,
|
'class': btn_style_neutral,
|
||||||
'click': ui.hideModal,
|
'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', {
|
this.dnsmasqCfgDirsSelect = E('select', {
|
||||||
'id' : 'dnsmasq_confdirs_list',
|
'id' : 'dnsmasq_confdirs_list',
|
||||||
'class': "cbi-input-select",
|
'class': "cbi-input-select",
|
||||||
|
|||||||
Reference in New Issue
Block a user