From 11ccf72119b70b968e63818787f816107e2b9c9a Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 19 Oct 2021 12:35:29 +0300 Subject: [PATCH] ipset: do not check for mDNSResponder, just killall --- ipset/def.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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() {