mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-02 06:30:53 +03:00
ipset: kill mDNSResponder only if killall exist
This commit is contained in:
parent
11ccf72119
commit
6a821ab49a
@ -152,6 +152,8 @@ flush_dns_cache()
|
|||||||
|
|
||||||
if exists killall; then
|
if exists killall; then
|
||||||
killall -HUP dnsmasq 2>/dev/null
|
killall -HUP dnsmasq 2>/dev/null
|
||||||
|
# MacOS
|
||||||
|
killall -HUP mDNSResponder 2>/dev/null
|
||||||
elif exists pkill; then
|
elif exists pkill; then
|
||||||
pkill -HUP ^dnsmasq$
|
pkill -HUP ^dnsmasq$
|
||||||
else
|
else
|
||||||
@ -166,8 +168,6 @@ flush_dns_cache()
|
|||||||
systemd-resolve --flush-caches
|
systemd-resolve --flush-caches
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# MacOS
|
|
||||||
killall -HUP mDNSResponder 2>/dev/null
|
|
||||||
}
|
}
|
||||||
dnstest()
|
dnstest()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user