luci-app-unblockneteasemusic-mini: bump to v1.2-7

This commit is contained in:
CN_SZTL 2020-03-04 22:53:54 +08:00
parent bdea6162e4
commit fa1929fc80
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 2 additions and 8 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-unblockneteasemusic-mini
PKG_VERSION:=1.2
PKG_RELEASE:=6
PKG_RELEASE:=7
LUCI_TITLE:=LuCI support for UnblockNeteaseMusic(-Go)
LUCI_DEPENDS:=+busybox +dnsmasq-full +ipset +iptables +wget
LUCI_PKGARCH:=all

View File

@ -16,7 +16,6 @@ enable.default = 0
enable.rmempty = false
select_server = s:option(ListValue, "select_server", translate("服务器位置"))
select_server:value("tencent_shanghai_golang", translate("[CTCGFW] 腾讯云上海(低音质)"))
select_server:value("tencent_shanghai_nodejs", translate("[CTCGFW] 腾讯云上海(高音质)"))
select_server:value("aliyun_beijing_nodejs", translate("[hyird] 阿里云北京(高音质)"))
select_server:value("aliyun_beijing_nodejs_2", translate("[Sunsky] 阿里云北京(高音质)"))

View File

@ -8,12 +8,7 @@ STOP=10
enable="$(uci get unblockneteasemusic-mini.@unblockneteasemusic-mini[0].enable)"
select_server="$(uci get unblockneteasemusic-mini.@unblockneteasemusic-mini[0].select_server)"
if [ "${select_server}" = "tencent_shanghai_golang" ]; then
unblock_server_ip="$(ping "cdn-shanghai.service.project-openwrt.eu.org" -c 1 | sed '1{s/[^(]*(//;s/).*//;q}')"
[ -z "${unblock_server_ip}" ] && unblock_server_ip="122.51.88.18"
unblock_server_http_port="30002"
unblock_server_https_port="30003"
elif [ "${select_server}" = "tencent_shanghai_nodejs" ]; then
if [ "${select_server}" = "tencent_shanghai_nodejs" ]; then
unblock_server_ip="$(ping "cdn-shanghai.service.project-openwrt.eu.org" -c 1 | sed '1{s/[^(]*(//;s/).*//;q}')"
[ -z "${unblock_server_ip}" ] && unblock_server_ip="122.51.88.18"
unblock_server_http_port="30000"