comments
This commit is contained in:
parent
eaa62c07ca
commit
a9b27b650f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user