|
|
@ -25,7 +25,7 @@ upriv=`cat $user/privatekey`
|
|
|
|
upub=`cat $user/publickey`
|
|
|
|
upub=`cat $user/publickey`
|
|
|
|
|
|
|
|
|
|
|
|
# get server ip
|
|
|
|
# get server ip
|
|
|
|
ip=`curl ifconfig.me`
|
|
|
|
ip=`curl -4 ifconfig.me`
|
|
|
|
|
|
|
|
|
|
|
|
# generate server config
|
|
|
|
# generate server config
|
|
|
|
cat > $server/wg0.conf <<EOF
|
|
|
|
cat > $server/wg0.conf <<EOF
|
|
|
|