From e28120e5379d6f8310a4a4082f5178da55a321e8 Mon Sep 17 00:00:00 2001 From: Matthew Grooms Date: Tue, 26 Aug 2008 22:20:01 +0000 Subject: Dump the per-configuration dh parameters data. It make no sense to keep this information in the configuration as its not specific to the server. It only contains the parameters ( a safe large prime number ) that is used during a DH key exchange. Instead, we now use a system wide dh file that is generated when the /var/etc/openvpn directory is setup. This shaves 10 to 30 seconds off of the server config creation process. Also correct a bug in the hack I added to work around carp related issues that prevented filter re-configuration from working properly. --- usr/local/www/vpn_openvpn_server.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr') diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php index 0de0cef..e2b2b84 100644 --- a/usr/local/www/vpn_openvpn_server.php +++ b/usr/local/www/vpn_openvpn_server.php @@ -205,10 +205,9 @@ if ($_POST) { $server = array(); - if (isset($id) && $a_server[$id]) { - $server['dh_params'] = $a_server[$id]['dh_params']; + if (isset($id) && $a_server[$id]) $server['vpnid'] = $a_server[$id]['vpnid']; - } else + else $server['vpnid'] = openvpn_vpnid_next(); $server['disable'] = $pconfig['disable']; -- cgit v1.1