mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-19 03:43:29 +00:00
fix luci-app-unblockmusic MTV play
This commit is contained in:
parent
3eb1c16942
commit
80bdce8bea
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user