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

Remove Table attribute in client conf

Signed-off-by: Faicker Mo <faicker.mo@gmail.com>
This commit is contained in:
Faicker Mo 2020-01-04 19:18:28 +08:00
parent 42a8edfa04
commit ae94b4498f
2 changed files with 5 additions and 10 deletions

View File

@ -1,7 +1,6 @@
[Interface]
Address = $_VPN_IP
PrivateKey = $_PRIVATE_KEY
Table = $_TABLE
[Peer]
PublicKey = $_SERVER_PUBLIC_KEY

6
wg.sh
View File

@ -71,10 +71,6 @@ add_user() {
echo "no available ip"
exit 1
fi
_TABLE=auto
if [[ ! -z "$route" ]]; then
_TABLE=off
fi
eval "echo \"$(cat "${template_file}")\"" > $userdir/wg0.conf
qrencode -o $userdir/$user.png < $userdir/wg0.conf
@ -185,7 +181,7 @@ usage() {
-l: list all users
-c: clear all
-g: generate ip file
-r: enable router(allow 0.0.0.0/0)
-r: enable route all traffic(allow 0.0.0.0/0)
"
}