summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2024-03-05 17:46:48 +0100
committerPatrick Spek <p.spek@tyil.nl>2024-03-05 17:46:48 +0100
commit4ae485c6f0858c0893d73084b0367087aa493fa6 (patch)
treeca14ef448ce08a7e22c5f36a3302cfb8a0c1036d
parenta70f155d7f4f30f981c0920452f6e0cbd9fb1b15 (diff)
Update post-up script to check for dual-stack
-rwxr-xr-xdata.d/vpn-wireguard/hooks/post-up2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.d/vpn-wireguard/hooks/post-up b/data.d/vpn-wireguard/hooks/post-up
index 1c5fe4f..b200922 100755
--- a/data.d/vpn-wireguard/hooks/post-up
+++ b/data.d/vpn-wireguard/hooks/post-up
@@ -12,7 +12,7 @@ main() {
while read -r addr;
do
check "$addr" &
- done < <(awk -F= '/vpn-wireguard.ip=/ { print $NF }' /etc/bashtard/hosts.d/*)
+ done < <(awk -F= '/vpn-wireguard.ipv(4|6)=/ { print $NF }' /etc/bashtard/hosts.d/*)
wait
}