Skip to content

Commit

Permalink
fix: 修改重载dnsmasq而非重启
Browse files Browse the repository at this point in the history
疑似由于防火墙策略重载会导致脚本进入重启死循环,dnsmasq服务持续重启影响d
ns解析
  • Loading branch information
binsee committed Jan 16, 2020
1 parent e1442ee commit a0647cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/root/etc/init.d/unblockmusic
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ del_rule(){
$ipt_n -X cloud_music 2>/dev/null

rm -f /tmp/dnsmasq.d/dnsmasq-163.conf
/etc/init.d/dnsmasq restart >/dev/null 2>&1
/etc/init.d/dnsmasq reload >/dev/null 2>&1
}

set_firewall(){
Expand All @@ -48,7 +48,7 @@ set_firewall(){
echo "ipset=/interface3.music.163.com/music" >> /tmp/dnsmasq.d/dnsmasq-163.conf
echo "ipset=/apm.music.163.com/music" >> /tmp/dnsmasq.d/dnsmasq-163.conf
echo "ipset=/apm3.music.163.com/music" >> /tmp/dnsmasq.d/dnsmasq-163.conf
/etc/init.d/dnsmasq restart >/dev/null 2>&1
/etc/init.d/dnsmasq reload >/dev/null 2>&1

add_rule

Expand Down

0 comments on commit a0647cb

Please sign in to comment.