diff --git a/ipset/def.sh b/ipset/def.sh index 28e04aa..fe0512b 100644 --- a/ipset/def.sh +++ b/ipset/def.sh @@ -167,9 +167,7 @@ flush_dns_cache() fi # MacOS - if exists pgrep && pgrep ^mDNSResponder$ >/dev/null; then - killall -HUP mDNSResponder - fi + killall -HUP mDNSResponder 2>/dev/null } dnstest() {