https-dns-proxy: bugfix: race condition with dnsmasq
authorStan Grishin <redacted>
Sun, 11 Apr 2021 01:29:59 +0000 (01:29 +0000)
committerPaul Spooren <redacted>
Sun, 11 Apr 2021 02:58:51 +0000 (16:58 -1000)
Signed-off-by: Stan Grishin <redacted>
net/https-dns-proxy/Makefile
net/https-dns-proxy/files/https-dns-proxy.init

index 7413a208d70bcff0fd79e69c64bc4aa53ece5f53..990c4958825c38c5783d6484789b5644db89aad0 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=https-dns-proxy
 PKG_VERSION:=2021-01-17
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy
index c26b33c70afa1f773d123333ad454499dcb643f1..e83fafb49f434bcfd183822d84bbe7e62c943e4d 100755 (executable)
@@ -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
git clone https://git.99rst.org/PROJECT