mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-26 04:16:24 +00:00
Kind of finished revamping add peers
Still need to clean some of the codes but overall is good :)
This commit is contained in:
7
src/bulkAddBash.sh
Normal file
7
src/bulkAddBash.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
for ((i = 0 ; i<$1 ; i++ ))
|
||||
do
|
||||
privateKey=$(wg genkey)
|
||||
presharedKey=$(wg genkey)
|
||||
publicKey=$(wg pubkey <<< "$privateKey")
|
||||
echo "$privateKey,$publicKey,$presharedKey"
|
||||
done
|
||||
Reference in New Issue
Block a user