summaryrefslogtreecommitdiff
path: root/net/https-dns-proxy/files/https-dns-proxy.hotplug.iface
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2021-10-13 21:41:10 -0700
committerGitHub <noreply@github.com>2021-10-13 21:41:10 -0700
commit0d0b2a99bbbe5af7df1b2496622fe4dc97c50ab7 (patch)
tree8f05d91def9605489de727679fadfa8a2e892dfa /net/https-dns-proxy/files/https-dns-proxy.hotplug.iface
parentf424ecff1fa067c48b87155a800680a05cb3021b (diff)
parentf8d16338da979ad20908bd2a16ca62857a902e91 (diff)
Merge pull request #16776 from stangri/master-https-dns-proxy
https-dns-proxy: update to 2021-09-27
Diffstat (limited to 'net/https-dns-proxy/files/https-dns-proxy.hotplug.iface')
-rw-r--r--net/https-dns-proxy/files/https-dns-proxy.hotplug.iface6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/https-dns-proxy/files/https-dns-proxy.hotplug.iface b/net/https-dns-proxy/files/https-dns-proxy.hotplug.iface
index 542a8b34f..c25b9e26d 100644
--- a/net/https-dns-proxy/files/https-dns-proxy.hotplug.iface
+++ b/net/https-dns-proxy/files/https-dns-proxy.hotplug.iface
@@ -1,6 +1,6 @@
#!/bin/sh
-if [ "$ACTION" = 'ifup' ] && [ "$INTERFACE" = 'wan' ]; then
- logger -t "https-dns-proxy" "Reloading https-dns-proxy due to $ACTION of $INTERFACE"
- /etc/init.d/https-dns-proxy reload
+if [ "$ACTION" = 'ifup' ] && [ "$INTERFACE" = 'wan' ] && /etc/init.d/https-dns-proxy enabled; then
+ logger -t "https-dns-proxy" "Restarting https-dns-proxy due to $ACTION of $INTERFACE"
+ /etc/init.d/https-dns-proxy restart
fi