Merge Lean's source

This commit is contained in:
CN_SZTL 2020-02-16 23:06:12 +08:00
parent eff0f23129
commit 16c9710564
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-unblockmusic
PKG_VERSION:=2.3.1
PKG_RELEASE:=5
PKG_RELEASE:=7
PKG_LICENSE:=Apache-2.0

View File

@ -28,12 +28,14 @@ add_rule()
$ipt_n -A cloud_music -p tcp --dport 80 -j REDIRECT --to-ports 5201
$ipt_n -A cloud_music -p tcp --dport 443 -j REDIRECT --to-ports 5202
$ipt_n -I PREROUTING -p tcp -m set --match-set music dst -j cloud_music
iptables -I OUTPUT -d 223.252.199.10 -j DROP
}
del_rule(){
$ipt_n -D PREROUTING -p tcp -m set --match-set music dst -j cloud_music 2>/dev/null
$ipt_n -F cloud_music 2>/dev/null
$ipt_n -X cloud_music 2>/dev/null
iptables -D OUTPUT -d 223.252.199.10 -j DROP 2>/dev/null
rm -f /tmp/dnsmasq.d/dnsmasq-163.conf
/etc/init.d/dnsmasq reload >/dev/null 2>&1