luci-app-unblockneteasemusic: bump release

This commit is contained in:
CN_SZTL 2019-08-11 13:48:10 +08:00
parent 762b18bbcf
commit 4942f0bfbc
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 6 additions and 5 deletions

View File

@ -12,7 +12,7 @@ LUCI_DEPENDS:=+UnblockNeteaseMusic-nondanee +bash +dnsmasq-full +ipset
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-unblockneteasemusic
PKG_VERSION:=1.5
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=<https://github.com/project-openwrt/UnblockNeteaseMusic>

View File

@ -40,14 +40,15 @@ iptables -t nat -A cloud_music -d 172.16.0.0/12 -j RETURN
iptables -t nat -A cloud_music -d 192.168.0.0/16 -j RETURN
iptables -t nat -A cloud_music -d 224.0.0.0/4 -j RETURN
iptables -t nat -A cloud_music -d 240.0.0.0/4 -j RETURN
iptables -t nat -A cloud_music -i br-lan -p tcp --dport 80 -j DNAT --to ${lan_addr}:${http_port}
iptables -t nat -A cloud_music -i br-lan -p tcp --dport 443 -j DNAT --to ${lan_addr}:${https_port}
iptables -t nat -A prerouting_rule -i br-lan -p tcp -m set --match-set music dst -j cloud_music
iptables -t nat -A cloud_music -p tcp --dport 80 -j REDIRECT --to-ports ${http_port}
iptables -t nat -A cloud_music -p tcp --dport 443 -j REDIRECT --to-ports ${https_port}
iptables -t nat -I PREROUTING -p tcp -m set --match-set music dst -j cloud_music
EOF
/etc/init.d/firewall restart >/dev/null 2>&1
elif [ "${set_type}" = "stop" ]; then
echo "" > /var/etc/unblockneteasemusic.include
/etc/init.d/firewall restart >/dev/null 2>&1
ipset destroy music
rm -f "/tmp/dnsmasq.d/dnsmasq-unblockneteasemusic.conf"
/etc/init.d/dnsmasq restart >/dev/null 2>&1
@ -124,4 +125,4 @@ stop()
set_type="stop"
set_ipset
set_hosts
}
}