luci-app-unblockmusic: fix typo error
This commit is contained in:
parent
6f183393d7
commit
cab8b3f0a6
@ -10,7 +10,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=LuCI support for Unblock NeteaseCloudMusic
|
||||
LUCI_DEPENDS:=+node +bash +dnsmasq-full +ipsec
|
||||
LUCI_DEPENDS:=+node +bash +dnsmasq-full +ipset
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_NAME:=luci-app-unblockmusic
|
||||
PKG_VERSION:=1.2
|
||||
|
||||
@ -18,7 +18,7 @@ enabled.default = 0
|
||||
enabled.rmempty = false
|
||||
enabled:depends("enabled", 1)
|
||||
|
||||
enabled = s:option(Flag, "enable_ipsec_forward", translate("启用IPSec转发相关流量"))
|
||||
enabled = s:option(Flag, "enable_ipset_forward", translate("启用IPSet转发相关流量"))
|
||||
enabled.description = translate("开启后,所有网易云音乐流量都会重定向到UnblockNeteaseMusic进行处理,但会导致无法正常访问云音乐网页端")
|
||||
enabled.default = 0
|
||||
enabled.rmempty = false
|
||||
|
||||
@ -26,7 +26,7 @@ start()
|
||||
node /usr/share/unblockmusic/app.js -p ${port} -o ${type} ${netease_server_ip} ${proxy_server_ip} ${strict_mode} >/tmp/unblockmusic.log 2>&1 &
|
||||
fi
|
||||
|
||||
if [ "$(uci get unblockmusic.@unblockmusic[0].enable_ipsec_forward)" -ne "0" ]; then
|
||||
if [ "$(uci get unblockmusic.@unblockmusic[0].enable_ipset_forward)" -ne "0" ]; then
|
||||
echo -e "ipset=/.music.163.com/music" >> /etc/dnsmasq.conf
|
||||
/etc/init.d/dnsmasq restart >/dev/null 2>&1
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user