diff options
| author | Stan Grishin <stangri@melmac.ca> | 2023-05-07 02:55:34 +0000 |
|---|---|---|
| committer | Stan Grishin <stangri@melmac.ca> | 2023-05-07 02:55:39 +0000 |
| commit | 25801ddf7435e535fc0684911abdf6022549409f (patch) | |
| tree | 15f8378c5d170c21a9157d08216b2884aa812c6c /net/https-dns-proxy/files | |
| parent | 7ac5f0a3d9505ee11393c6673d9ece663d8c1b60 (diff) | |
https-dns-proxy: fixes/improvements
* use shared memory to store output data
* add family option to firewall json objects, due to reports that IPv6 hijacking
doesn't work without explicit family declaration
Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'net/https-dns-proxy/files')
| -rwxr-xr-x | net/https-dns-proxy/files/https-dns-proxy.init | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/https-dns-proxy/files/https-dns-proxy.init b/net/https-dns-proxy/files/https-dns-proxy.init index b4c55fea3..f6e32cba7 100755 --- a/net/https-dns-proxy/files/https-dns-proxy.init +++ b/net/https-dns-proxy/files/https-dns-proxy.init @@ -17,7 +17,6 @@ fi readonly PKG_VERSION='dev-test' readonly packageName='https-dns-proxy' readonly serviceName="$packageName $PKG_VERSION" -readonly sharedMemoryOutput="/dev/shm/$packageName-output" readonly _OK_='\033[0;32m\xe2\x9c\x93\033[0m' readonly _FAIL_='\033[0;31m\xe2\x9c\x97\033[0m' readonly PROG=/usr/sbin/https-dns-proxy @@ -33,6 +32,7 @@ is_ipv4() { expr "$1" : '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$' >/ is_ipv6() { ! is_mac_address "$1" && str_contains "$1" ":"; } output() { local msg memmsg logmsg + local sharedMemoryOutput="/dev/shm/$packageName-output" [ -t 1 ] && printf "%b" "$@" msg="${1//$serviceName /service }"; if [ "$(printf "%b" "$msg" | wc -l)" -gt 0 ]; then @@ -171,6 +171,7 @@ start_instance() { json_add_string proto 'tcp udp' json_add_string src_dport "$p" json_add_string dest_port "$p" + json_add_string family any json_add_boolean reflection 0 json_close_object else |
