mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-05 03:43:30 +03:00
Clean $ENDPOINT code
https://github.com/angristan/wireguard-install/pull/58#discussion_r449002047
This commit is contained in:
parent
3d343c3fd7
commit
ca2178cff2
1 changed files with 1 additions and 5 deletions
|
@ -203,11 +203,7 @@ function newClient() {
|
|||
# shellcheck disable=SC1091
|
||||
source /etc/wireguard/params
|
||||
|
||||
if [[ $SERVER_PUB_IP =~ .*:.* ]]; then
|
||||
ENDPOINT="[$SERVER_PUB_IP]:$SERVER_PORT"
|
||||
else
|
||||
ENDPOINT="$SERVER_PUB_IP:$SERVER_PORT"
|
||||
fi
|
||||
ENDPOINT="${SERVER_PUB_IP}:${SERVER_PORT}"
|
||||
|
||||
printf "\n"
|
||||
until [[ "$CLIENT_WG_IPV4" =~ ^([0-9]{1,3}\.?){4}$ ]]; do
|
||||
|
|
Loading…
Add table
Reference in a new issue