]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
added tls-remote to openvpn for security reasons
authorDaniel Glanzmann <dg@ipfire.org>
Mon, 29 Sep 2008 19:12:15 +0000 (21:12 +0200)
committerDaniel Glanzmann <dg@ipfire.org>
Mon, 29 Sep 2008 19:12:15 +0000 (21:12 +0200)
html/cgi-bin/ovpnmain.cgi

index 746f7eece5aa95527a8994ccac2ade097417bf84..374b25f5ea39f7d0a71ba565ce96f2e2ab9094fe 100644 (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);