Skip to content

Commit

Permalink
Add explicit-exit-notify for UDP (angristan#579)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
HenryNe authored Mar 26, 2020
1 parent 14bcfbd commit 130659b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openvpn-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,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
Expand Down

0 comments on commit 130659b

Please sign in to comment.