Exit if the client IP is in use

This commit is contained in:
randomshell 2020-08-23 09:39:16 +00:00
parent 812ea87ca9
commit 8a97759803

View File

@ -279,6 +279,7 @@ function newClient() {
echo "" echo ""
echo "A client with the specified IPv4 was already created, please choose another IPv4." echo "A client with the specified IPv4 was already created, please choose another IPv4."
echo "" echo ""
exit 1
fi fi
done done
CLIENT_WG_IPV6="${SERVER_WG_IPV6::-1}${CLIENT_DOT}" CLIENT_WG_IPV6="${SERVER_WG_IPV6::-1}${CLIENT_DOT}"