From cd11d8821f43eef53142476a9bbb71dd85887f4b Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Sun, 11 Apr 2021 01:29:59 +0000 Subject: https-dns-proxy: bugfix: race condition with dnsmasq Signed-off-by: Stan Grishin --- net/https-dns-proxy/files/https-dns-proxy.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/https-dns-proxy/files/https-dns-proxy.init') diff --git a/net/https-dns-proxy/files/https-dns-proxy.init b/net/https-dns-proxy/files/https-dns-proxy.init index c26b33c70..e83fafb49 100755 --- a/net/https-dns-proxy/files/https-dns-proxy.init +++ b/net/https-dns-proxy/files/https-dns-proxy.init @@ -110,7 +110,7 @@ start_service() { procd_open_data json_add_array firewall for c in $forceDNSPorts; do - if netstat -tuln | grep LISTEN | grep ":${c}" >/dev/null 2>&1; then + if netstat -tuln | grep 'LISTEN' | grep ":${c}" >/dev/null 2>&1 || [ "$c" = "53" ]; then json_add_object "" json_add_string type redirect json_add_string target DNAT -- cgit