diff options
| author | Hannu Nyman <hannu.nyman@iki.fi> | 2018-04-27 10:38:44 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-27 10:38:44 +0300 |
| commit | 0cc28022b280cd2d009ea9b1e3a380871892bb14 (patch) | |
| tree | da2e9827d99e50fdfaf10a652aacd3fc9cd0b627 /net/https-dns-proxy/files/https_dns_proxy.init | |
| parent | 68a3d3d6eea90232f5a5c0413eac178da3668ac3 (diff) | |
| parent | f74f517b9a33924e3430b7daf6f85a3b777279e0 (diff) | |
Merge pull request #5970 from jemyzhang/master
net/https-dns-proxy: Update to 2018-04-23
Diffstat (limited to 'net/https-dns-proxy/files/https_dns_proxy.init')
| -rw-r--r-- | net/https-dns-proxy/files/https_dns_proxy.init | 8 |
1 files changed, 7 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 29bd71ed7..9a5f79792 100644 --- a/net/https-dns-proxy/files/https_dns_proxy.init +++ b/net/https-dns-proxy/files/https_dns_proxy.init @@ -15,6 +15,7 @@ start_instance() { config_get group "$cfg" group config_get subnet_addr "$cfg" subnet_addr config_get proxy_server "$cfg" proxy_server + config_get url_prefix "$cfg" url_prefix if [ -n "$subnet_addr" ]; then subnet_param="-e $subnet_addr" @@ -24,10 +25,15 @@ start_instance() { proxy_param="-t $proxy_server" fi + if [ -z "$url_prefix" ]; then + url_prefix="https://dns.google.com/resolve?" + fi + procd_open_instance procd_set_param command ${PROG} \ -a "$listen_addr" -p "$listen_port" \ - -u "$user" -g "$group" $subnet_param $proxy_param + -u "$user" -g "$group" $subnet_param $proxy_param \ + -r "$url_prefix" procd_set_param respawn procd_close_instance } |
