diff --git a/wireguard-install.sh b/wireguard-install.sh index f916356..d10e00f 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -178,10 +178,8 @@ function newClient() { source /etc/wireguard/params if [[ $SERVER_PUB_IP =~ .*:.* ]]; then - echo "IPv6 Detected" ENDPOINT="[$SERVER_PUB_IP]:$SERVER_PORT" else - echo "IPv4 Detected" ENDPOINT="$SERVER_PUB_IP:$SERVER_PORT" fi