diff options
| author | Hannu Nyman <hannu.nyman@iki.fi> | 2018-03-10 11:34:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-10 11:34:58 +0200 |
| commit | 2304d595e1f41fd54656cbc22715c18ad07f6d0c (patch) | |
| tree | 05c750a8d605b8b22dd9a4c98d174981fa84d68c /net/https-dns-proxy/files/https_dns_proxy.init | |
| parent | 4e5abce7e088b57167cfe3bebac9e233a242bc3e (diff) | |
| parent | 1831d97cf10196fe3b4c174f54b508efb4e76b28 (diff) | |
Merge pull request #5724 from jemyzhang/master
net/https-dns-proxy: Update to 2018-01-28
Diffstat (limited to 'net/https-dns-proxy/files/https_dns_proxy.init')
| -rw-r--r-- | net/https-dns-proxy/files/https_dns_proxy.init | 12 |
1 files changed, 11 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 333f3cac3..29bd71ed7 100644 --- a/net/https-dns-proxy/files/https_dns_proxy.init +++ b/net/https-dns-proxy/files/https_dns_proxy.init @@ -13,11 +13,21 @@ start_instance() { config_get listen_port "$cfg" listen_port config_get user "$cfg" user config_get group "$cfg" group + config_get subnet_addr "$cfg" subnet_addr + config_get proxy_server "$cfg" proxy_server + + if [ -n "$subnet_addr" ]; then + subnet_param="-e $subnet_addr" + fi + + if [ -n "$proxy_server" ]; then + proxy_param="-t $proxy_server" + fi procd_open_instance procd_set_param command ${PROG} \ -a "$listen_addr" -p "$listen_port" \ - -u "$user" -g "$group" + -u "$user" -g "$group" $subnet_param $proxy_param procd_set_param respawn procd_close_instance } |
