mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-23 07:40:11 +00:00
add PERSISTENTKEEPALIVE support
This commit is contained in:
parent
96102d009c
commit
88a701c16a
3 changed files with 15 additions and 0 deletions
|
@ -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} ###
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue