From 05a1116c3d44fe5674bd4e9ea6cf54def8f959b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Mon, 1 Mar 2010 21:07:28 +0000 Subject: The tls-auth needs a 1 at the end of the key. --- config/openvpn-client-export/openvpn-client-export.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc index 15096e6c..a2a59fb0 100755 --- a/config/openvpn-client-export/openvpn-client-export.inc +++ b/config/openvpn-client-export/openvpn-client-export.inc @@ -181,7 +181,7 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $usetoke if($nokeys == false) { if ($settings['tls']) - $conf .= "tls-auth {$prefix}-tls.key\n"; + $conf .= "tls-auth {$prefix}-tls.key 1\n"; } // add optional settings @@ -359,7 +359,7 @@ EOF; $configfile = "{$tempdir}/config.conf"; $conf .= <<