Fix broken client.ovpn
This commit is contained in:
parent
4e33e2224e
commit
2e4643d5cf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user