mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-02-20 14:13:22 +03:00
Exit if the client IP is in use
This commit is contained in:
parent
812ea87ca9
commit
8a97759803
@ -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}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user