mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-21 23:01:39 +01:00
769ca4e26d
Still need to clean some of the codes but overall is good :)
7 lines
202 B
Bash
7 lines
202 B
Bash
for ((i = 0 ; i<$1 ; i++ ))
|
|
do
|
|
privateKey=$(wg genkey)
|
|
presharedKey=$(wg genkey)
|
|
publicKey=$(wg pubkey <<< "$privateKey")
|
|
echo "$privateKey,$publicKey,$presharedKey"
|
|
done |