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

This commit is contained in:
Michel Roux 2024-05-15 22:43:49 +02:00
parent 112fdce3c2
commit 7dc032b2f1

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