summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-04-08 08:27:37 -0400
committerjim-p <jimp@pfsense.org>2011-04-08 08:28:31 -0400
commit02d99511539a3312f8aab54b7dd1cdcaec9c0847 (patch)
tree6629e13ac1ae5d7204b358812c56e37ebf9f4fa2
parentb510be5cc1539dbdd6fc3d5bfe8afded5e346cbc (diff)
downloadpfsense-02d99511539a3312f8aab54b7dd1cdcaec9c0847.zip
pfsense-02d99511539a3312f8aab54b7dd1cdcaec9c0847.tar.gz
Putting client-config-dir in the config is valid also for p2p_tls servers. Fixes #1417.
-rw-r--r--etc/inc/openvpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index df531c7..56f6cf5 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -382,13 +382,13 @@ function openvpn_reconfigure($mode, $settings) {
// configure p2p/server modes
switch($settings['mode']) {
- case 'p2p_tls':
case 'p2p_shared_key':
$baselong = ip2long32($ip) & ip2long($mask);
$ip1 = long2ip32($baselong + 1);
$ip2 = long2ip32($baselong + 2);
$conf .= "ifconfig $ip1 $ip2\n";
break;
+ case 'p2p_tls':
case 'server_tls':
case 'server_user':
case 'server_tls_user':
OpenPOWER on IntegriCloud