mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-19 01:35:30 +08:00
luci-app-ssr-plus: let dns2socks as option
This commit is contained in:
parent
69a52145d8
commit
9c8119b096
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-ssr-plus
|
PKG_NAME:=luci-app-ssr-plus
|
||||||
PKG_VERSION:=163
|
PKG_VERSION:=163
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
@ -40,6 +40,10 @@ config PACKAGE_$(PKG_NAME)_INCLUDE_Kcptun
|
|||||||
config PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Server
|
config PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Server
|
||||||
bool "Include ShadowsocksR Server"
|
bool "Include ShadowsocksR Server"
|
||||||
default y if x86_64
|
default y if x86_64
|
||||||
|
|
||||||
|
config PACKAGE_$(PKG_NAME)_INCLUDE_DNS2SOCKS
|
||||||
|
bool "Include DNS2SOCKS"
|
||||||
|
default n
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)
|
define Package/$(PKG_NAME)
|
||||||
@ -48,7 +52,7 @@ define Package/$(PKG_NAME)
|
|||||||
SUBMENU:=3. Applications
|
SUBMENU:=3. Applications
|
||||||
TITLE:=SS/SSR/V2Ray/Trojan LuCI interface
|
TITLE:=SS/SSR/V2Ray/Trojan LuCI interface
|
||||||
PKGARCH:=all
|
PKGARCH:=all
|
||||||
DEPENDS:=+shadowsocksr-libev-alt +ipset +ip-full +iptables-mod-tproxy +dnsmasq-full +coreutils +coreutils-base64 +pdnsd-alt +wget +lua +microsocks +dns2socks \
|
DEPENDS:=+shadowsocksr-libev-alt +ipset +ip-full +iptables-mod-tproxy +dnsmasq-full +coreutils +coreutils-base64 +pdnsd-alt +wget +lua +microsocks \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks:shadowsocks-libev-ss-redir \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks:shadowsocks-libev-ss-redir \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Simple_obfs:simple-obfs \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_Simple_obfs:simple-obfs \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_plugin:v2ray-plugin \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_plugin:v2ray-plugin \
|
||||||
@ -56,7 +60,8 @@ define Package/$(PKG_NAME)
|
|||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Trojan:trojan \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_Trojan:trojan \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Redsocks2:redsocks2 \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_Redsocks2:redsocks2 \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Kcptun:kcptun-client \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_Kcptun:kcptun-client \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Server:shadowsocksr-libev-server
|
+PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Server:shadowsocksr-libev-server \
|
||||||
|
+PACKAGE_$(PKG_NAME)_INCLUDE_DNS2SOCKS:dns2socks
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Prepare
|
define Build/Prepare
|
||||||
|
@ -70,7 +70,9 @@ o.default = 1
|
|||||||
|
|
||||||
o = s:option(ListValue, "pdnsd_enable", translate("Resolve Dns Mode"))
|
o = s:option(ListValue, "pdnsd_enable", translate("Resolve Dns Mode"))
|
||||||
o:value("1", translate("Use Pdnsd tcp query and cache"))
|
o:value("1", translate("Use Pdnsd tcp query and cache"))
|
||||||
|
if nixio.fs.access("/usr/bin/dns2socks") then
|
||||||
o:value("2", translate("Use DNS2SOCKS query and cache"))
|
o:value("2", translate("Use DNS2SOCKS query and cache"))
|
||||||
|
end
|
||||||
o:value("0", translate("Use Local DNS Service listen port 5335"))
|
o:value("0", translate("Use Local DNS Service listen port 5335"))
|
||||||
o.default = 1
|
o.default = 1
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ t = f:field(TextValue, "conf")
|
|||||||
t.rmempty = true
|
t.rmempty = true
|
||||||
t.rows = 20
|
t.rows = 20
|
||||||
function t.cfgvalue()
|
function t.cfgvalue()
|
||||||
luci.sys.exec("grep -B 1 'http' /tmp/unblockmusic.log | grep -v -e'running' -e'TLS' -e'Transport' -e'POST' -e'github' -e'consumed' -e'starting'-e'error' > /tmp/music.log")
|
luci.sys.exec("grep -B 1 'http' /tmp/unblockmusic.log | grep -v -e'running' -e'TLS' -e'Transport' -e'POST' -e'github' -e'consumed' -e'starting' -e'error' > /tmp/music.log")
|
||||||
return fs.readfile(conffile) or ""
|
return fs.readfile(conffile) or ""
|
||||||
end
|
end
|
||||||
t.readonly="readonly"
|
t.readonly="readonly"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user