From f2190afc0b8630b01aacbed240368d0ab6a19d62 Mon Sep 17 00:00:00 2001 From: Rushab Shah Date: Wed, 13 Apr 2022 22:14:03 +0000 Subject: [PATCH] WireGuard: removeCONF: Remove ipv6 DNS entries too --- scripts/wireguard/removeCONF.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wireguard/removeCONF.sh b/scripts/wireguard/removeCONF.sh index eed8c24..6b71efb 100755 --- a/scripts/wireguard/removeCONF.sh +++ b/scripts/wireguard/removeCONF.sh @@ -126,7 +126,7 @@ for CLIENT_NAME in "${CLIENTS_TO_REMOVE[@]}"; do # shellcheck disable=SC2154 if [ -f /etc/pivpn/hosts.wireguard ]; then NET_REDUCED="${pivpnNET::-2}" - sed "\#${NET_REDUCED}.${COUNT} ${CLIENT_NAME}.pivpn#d" -i /etc/pivpn/hosts.wireguard + sed -e "\#${NET_REDUCED}.${COUNT} ${CLIENT_NAME}.pivpn#d" -e "\#${pivpnNETv6}${COUNT} ${CLIENT_NAME}.pivpn#d" -i /etc/pivpn/hosts.wireguard if killall -SIGHUP pihole-FTL; then echo "::: Updated hosts file for Pi-hole" else