mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-11-08 09:52:41 +01:00
@@ -78,6 +78,7 @@ newclient () {
|
|||||||
#We verify if we used tls-crypt or tls-auth during the installation
|
#We verify if we used tls-crypt or tls-auth during the installation
|
||||||
TLS_SIG=$(cat /etc/openvpn/TLS_SIG)
|
TLS_SIG=$(cat /etc/openvpn/TLS_SIG)
|
||||||
if [[ $TLS_SIG == "1" ]]; then
|
if [[ $TLS_SIG == "1" ]]; then
|
||||||
|
echo "<tls-crypt>" >> ~/$1.ovpn
|
||||||
cat /etc/openvpn/tls-crypt.key >> ~/$1.ovpn
|
cat /etc/openvpn/tls-crypt.key >> ~/$1.ovpn
|
||||||
echo "</tls-crypt>" >> ~/$1.ovpn
|
echo "</tls-crypt>" >> ~/$1.ovpn
|
||||||
elif [[ $TLS_SIG == "2" ]]; then
|
elif [[ $TLS_SIG == "2" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user