added tls-remote to openvpn for security reasons

This commit is contained in:
Daniel Glanzmann
2008-09-29 21:12:15 +02:00
parent 6633597475
commit 3c5d386e57

View File

@@ -1378,6 +1378,7 @@ END
}
print CLIENTCONF "verb 3\r\n";
print CLIENTCONF "ns-cert-type server\r\n";
print CLIENTCONF "tls-remote $vpnsettings{ROOTCERT_HOSTNAME}\r\n";
close(CLIENTCONF);
$zip->addFile( "$tempdir/$clientovpn", $clientovpn) or die "Can't add file $clientovpn\n";
my $status = $zip->writeToFileNamed($zippathname);