summaryrefslogtreecommitdiff
path: root/net/https-dns-proxy/files/https-dns-proxy.init
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2021-03-25 22:55:33 +0000
committerRosen Penev <rosenp@gmail.com>2021-03-25 16:46:01 -0700
commit84fc5dfad456bca239beb7367fb5ebb66741b964 (patch)
treec1e5bdd204563aad5d10877a856cc048e7b8a4ca /net/https-dns-proxy/files/https-dns-proxy.init
parente7caf1f2ba9a99a0d6f6f0e82987a3836c9864ae (diff)
https-dns-proxy: bugfix: correct PROCD firewall object
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'net/https-dns-proxy/files/https-dns-proxy.init')
-rwxr-xr-xnet/https-dns-proxy/files/https-dns-proxy.init24
1 files changed, 12 insertions, 12 deletions
diff --git a/net/https-dns-proxy/files/https-dns-proxy.init b/net/https-dns-proxy/files/https-dns-proxy.init
index 04202fcb3..c26b33c70 100755
--- a/net/https-dns-proxy/files/https-dns-proxy.init
+++ b/net/https-dns-proxy/files/https-dns-proxy.init
@@ -111,23 +111,23 @@ start_service() {
json_add_array firewall
for c in $forceDNSPorts; do
if netstat -tuln | grep LISTEN | grep ":${c}" >/dev/null 2>&1; then
- json_add_object ''
- json_add_string type 'redirect'
- json_add_string target 'DNAT'
- json_add_string src 'lan'
- json_add_string proto 'tcp udp'
+ json_add_object ""
+ json_add_string type redirect
+ json_add_string target DNAT
+ json_add_string src lan
+ json_add_string proto "tcp udp"
json_add_string src_dport "$c"
json_add_string dest_port "$c"
- json_add_string reflection '0'
+ json_add_boolean reflection 0
json_close_object
else
- json_add_object ''
- json_add_string type 'rule'
- json_add_string src 'lan'
- json_add_string dest '*'
- json_add_string proto 'tcp udp'
+ json_add_object ""
+ json_add_string type rule
+ json_add_string src lan
+ json_add_string dest "*"
+ json_add_string proto "tcp udp"
json_add_string dest_port "$c"
- json_add_string target 'REJECT'
+ json_add_string target REJECT
json_close_object
fi
done