luci-app-unblockmusic: fix typo error

This commit is contained in:
CN_SZTL 2019-07-14 19:03:00 +08:00
parent 6f183393d7
commit cab8b3f0a6
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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