1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Enable Pi-Hole DNS only when VPN is up

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-09-05 08:29:49 +02:00
parent 649affc650
commit 0bdfb41e88
2 changed files with 4 additions and 3 deletions

View file

@ -719,7 +719,7 @@ _config_service() {
[ -z "$(_set_redirect_ports_from_vps $redirect_port)" ] && error=1
[ -z "$(_set_mptcp_vps)" ] && error=1
[ -z "$(_set_vpn_vps)" ] && error=1
_set_pihole
#_set_pihole
[ -n "$wanips" ] && _set_wan_ip
[ "$error" = 0 ] && uci -q set openmptcprouter.${servername}.lastchange=$(date "+%s")
uci -q batch <<-EOF >/dev/null