luci-app-unblockmusic: redir 443 ports for Windows 10 Neteaste Music

This commit is contained in:
LEAN-ESX 2019-10-16 22:35:03 -07:00
parent 223cd21383
commit 88237cd41a
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -22,11 +22,11 @@ add_rule()
$ipt_n -A cloud_music -d 224.0.0.0/4 -j RETURN
$ipt_n -A cloud_music -d 240.0.0.0/4 -j RETURN
$ipt_n -A cloud_music -p tcp -j REDIRECT --to-ports 5200
$ipt_n -I PREROUTING -p tcp --dport 80 -m set --match-set music dst -j cloud_music
$ipt_n -I PREROUTING -p tcp -m multiport --dports 80,443 -m set --match-set music dst -j cloud_music
}
del_rule(){
$ipt_n -D PREROUTING -p tcp --dport 80 -m set --match-set music dst -j cloud_music 2>/dev/null
$ipt_n -D PREROUTING -p tcp -m multiport --dports 80,443 -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