fix luci-app-unblockmusic MTV play

This commit is contained in:
LEAN-ESX 2019-08-06 05:46:26 -07:00
parent 3eb1c16942
commit 80bdce8bea
3 changed files with 8 additions and 8 deletions

View File

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

View File

@ -30,16 +30,16 @@ del_rule(){
$ipt_n -F cloud_music 2>/dev/null
$ipt_n -X cloud_music 2>/dev/null
sed -i '/ipset=\/.music.163.com\/music/d' /etc/dnsmasq.conf
sed -i '/proxy.pac/d' /etc/dnsmasq.conf
rm -f /tmp/dnsmasq.d/dnsmasq-163.conf
/etc/init.d/dnsmasq restart >/dev/null 2>&1
}
set_firewall(){
sed -i '/ipset=\/.music.163.com\/music/d' /etc/dnsmasq.conf
sed -i '/proxy.pac/d' /etc/dnsmasq.conf
echo "dhcp-option=252,http://$ROUTE_IP:$PORT/proxy.pac" >> /etc/dnsmasq.conf
echo "ipset=/.music.163.com/music" >> /etc/dnsmasq.conf
rm -f /tmp/dnsmasq.d/dnsmasq-163.conf
mkdir -p /tmp/dnsmasq.d
echo "dhcp-option=252,http://$ROUTE_IP:5200/proxy.pac" > /tmp/dnsmasq.d/dnsmasq-163.conf
echo "ipset=/music.163.com/music" >> /tmp/dnsmasq.d/dnsmasq-163.conf
echo "ipset=/interface.music.163.com/music" >> /tmp/dnsmasq.d/dnsmasq-163.conf
/etc/init.d/dnsmasq restart >/dev/null 2>&1
add_rule

View File

@ -7,6 +7,6 @@ while true
do
(( log_size = "$(ls -l "${log_file}" | awk -F ' ' '{print $5}')" / "1024" ))
(( "${log_size}" >= "${log_max_size}" )) && echo "" > /tmp/unblockmusic.log
sleep 5m
sleep 10m
done