mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
Merge Lean's source
This commit is contained in:
parent
eff0f23129
commit
16c9710564
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user