Fix broken client.ovpn

This commit is contained in:
Chocobozzz 2019-03-25 17:12:42 +01:00
parent 4e33e2224e
commit 2e4643d5cf
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View File

@ -239,7 +239,7 @@ for file in $(find -name client.ovpn); do
echo "</ca>" >> $file echo "</ca>" >> $file
echo "<tls-auth>" >> $file echo "<tls-auth>" >> $file
cat "/etc/openvpn/ta.key" >> $file cat "/etc/openvpn/ta.key" >> $file
echo "</tls-auth>" echo "</tls-auth>" >> $file
if [ $openvpn_proto = "udp" ]; then if [ $openvpn_proto = "udp" ]; then
sed -i "s/proto tcp-client/proto udp/" $file sed -i "s/proto tcp-client/proto udp/" $file