add PERSISTENTKEEPALIVE support

This commit is contained in:
DerDanilo 2021-06-06 01:10:43 +02:00
parent 96102d009c
commit 88a701c16a
3 changed files with 15 additions and 0 deletions

View file

@ -120,6 +120,10 @@ PublicKey = $(cat keys/server_pub)
PresharedKey = $(cat "keys/${CLIENT_NAME}_psk")
Endpoint = ${pivpnHOST}:${pivpnPORT}
AllowedIPs = ${ALLOWED_IPS}" >> "configs/${CLIENT_NAME}.conf"
if [ -n "${pivpnPERSISTENTKEEPALIVE}" ]; then
echo "PersistentKeepalive = ${pivpnPERSISTENTKEEPALIVE}" >> "configs/${CLIENT_NAME}.conf"
fi
echo "::: Client config generated"
echo "### begin ${CLIENT_NAME} ###