diff --git a/new-client.sh b/new-client.sh index 8f5812b..4285091 100755 --- a/new-client.sh +++ b/new-client.sh @@ -21,10 +21,9 @@ export SERVER_PUBLIC_KEY=$(wg pubkey < $SERVER_KEYFILE) create_client() { mkdir clients 2> /dev/null umask 077 - CPRK="/tmp/cprk" - CPUK="/tmp/cpuk" + CPRK="/tmp/cprk" # client private key + CPUK="/tmp/cpuk" # client public key wg genkey | tee $CPRK | wg pubkey > $CPUK - #export CLIENT_PRIVATE_KEY=$(cat $CLIENT_PK_FILE) export CLIENT_PRIVATE_KEY=$(cat $CPRK) export CLIENT_PUBLIC_KEY=$(cat $CPUK) export IP_ADDR=$1