fix: 🐛 wrong separator for ipv6
All checks were successful
dl / skip-chown (push) Successful in 16s
dl / wireguard-ipv6 (push) Successful in 20s

This commit is contained in:
Michel Roux 2024-05-15 22:41:35 +02:00
parent 1789561f99
commit 112fdce3c2

View File

@ -59,7 +59,7 @@ DUDE"
fi
done
for idx in {2..254}; do
PROPOSED_IPV6="${INTERFACE_IPV6}.${idx}"
PROPOSED_IPV6="${INTERFACE_IPV6}:${idx}"
if ! grep -q -R "${PROPOSED_IPV6}" /config/peer*/*.conf 2>/dev/null && ([ -z "${ORIG_INTERFACE}" ] || ! grep -q -R "${ORIG_INTERFACE}.${idx}" /config/peer*/*.conf 2>/dev/null); then
CLIENT_IPV6="${PROPOSED_IPV6}"
break