mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-05 03:43:30 +03:00
require SERVER_WG_NIC shorter than 16 chars as well
This commit is contained in:
parent
22026dd8e6
commit
56a72844ef
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ function installQuestions() {
|
|||
read -rp "Public interface: " -e -i "${SERVER_NIC}" SERVER_PUB_NIC
|
||||
done
|
||||
|
||||
until [[ ${SERVER_WG_NIC} =~ ^[a-zA-Z0-9_]+$ ]]; do
|
||||
until [[ ${SERVER_WG_NIC} =~ ^[a-zA-Z0-9_]+$ && ${#SERVER_WG_NIC} -lt 16 ]]; do
|
||||
read -rp "WireGuard interface name: " -e -i wg0 SERVER_WG_NIC
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue