Add explicit-exit-notify for UDP

For faster reconnects with UDP is better to send the the explicit-exit-notify to server. With this the server can directly see, that the client will exit.
This commit is contained in:
Henry N 2020-03-26 20:11:09 +01:00 committed by GitHub
parent 6bb87ae716
commit 19823df89a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -961,6 +961,7 @@ WantedBy=multi-user.target" > /etc/systemd/system/iptables-openvpn.service
echo "client" > /etc/openvpn/client-template.txt
if [[ "$PROTOCOL" = 'udp' ]]; then
echo "proto udp" >> /etc/openvpn/client-template.txt
echo "explicit-exit-notify" >> /etc/openvpn/client-template.txt
elif [[ "$PROTOCOL" = 'tcp' ]]; then
echo "proto tcp-client" >> /etc/openvpn/client-template.txt
fi