1
0
mirror of https://github.com/faicker/wg-config.git synced 2020-11-18 19:53:49 -08:00

rename client.conf to wg0.conf

This commit is contained in:
Faicker Mo 2019-05-15 13:30:26 +08:00
parent c7003084f5
commit e1e1b4ef91
2 changed files with 5 additions and 5 deletions

View File

@ -29,15 +29,15 @@ Running as root.
./user.sh -a alice
```
This will generate a client conf and qrcode in current directory which name is alice
and add alice to the wg config.
This will generate a client conf and qrcode in users directory which name is alice
and add alice to the wg server config.
#### delete a user
```bash
./user.sh -d alice
```
This will delete the alice directory and delete alice from the wg config.
This will delete the alice directory and delete alice from the wg server config.
#### clear all

View File

@ -71,8 +71,8 @@ add_user() {
echo "no available ip"
exit 1
fi
eval "echo \"$(cat "${template_file}")\"" > $userdir/client.conf
qrencode -o $userdir/$user.png < $userdir/client.conf
eval "echo \"$(cat "${template_file}")\"" > $userdir/wg0.conf
qrencode -o $userdir/$user.png < $userdir/wg0.conf
# change wg config
local ip=${_VPN_IP%/*}/32