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:
parent
42a8edfa04
commit
ae94b4498f
@ -1,7 +1,6 @@
|
|||||||
[Interface]
|
[Interface]
|
||||||
Address = $_VPN_IP
|
Address = $_VPN_IP
|
||||||
PrivateKey = $_PRIVATE_KEY
|
PrivateKey = $_PRIVATE_KEY
|
||||||
Table = $_TABLE
|
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = $_SERVER_PUBLIC_KEY
|
PublicKey = $_SERVER_PUBLIC_KEY
|
||||||
|
6
wg.sh
6
wg.sh
@ -71,10 +71,6 @@ add_user() {
|
|||||||
echo "no available ip"
|
echo "no available ip"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
_TABLE=auto
|
|
||||||
if [[ ! -z "$route" ]]; then
|
|
||||||
_TABLE=off
|
|
||||||
fi
|
|
||||||
eval "echo \"$(cat "${template_file}")\"" > $userdir/wg0.conf
|
eval "echo \"$(cat "${template_file}")\"" > $userdir/wg0.conf
|
||||||
qrencode -o $userdir/$user.png < $userdir/wg0.conf
|
qrencode -o $userdir/$user.png < $userdir/wg0.conf
|
||||||
|
|
||||||
@ -185,7 +181,7 @@ usage() {
|
|||||||
-l: list all users
|
-l: list all users
|
||||||
-c: clear all
|
-c: clear all
|
||||||
-g: generate ip file
|
-g: generate ip file
|
||||||
-r: enable router(allow 0.0.0.0/0)
|
-r: enable route all traffic(allow 0.0.0.0/0)
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user