diff options
author | jim-p <jimp@pfsense.org> | 2011-04-18 18:27:47 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-04-18 18:27:47 -0400 |
commit | 6c9cf4662eaa2db6cd8eea770f7364aaa9feae99 (patch) | |
tree | 15f71b0c3256ffac5b12e880f3fd9fdc2305f057 | |
parent | 359f6307d65e0a5d662445c7637e03057217eb1c (diff) | |
download | pfsense-6c9cf4662eaa2db6cd8eea770f7364aaa9feae99.zip pfsense-6c9cf4662eaa2db6cd8eea770f7364aaa9feae99.tar.gz |
Slightly different fix for #1417 that doesn't mess up other parameters needed by p2p_tls
-rw-r--r-- | etc/inc/openvpn.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 56f6cf5..c82735c 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -382,13 +382,14 @@ function openvpn_reconfigure($mode, $settings) { // configure p2p/server modes switch($settings['mode']) { + case 'p2p_tls': + $conf .= "client-config-dir {$g['varetc_path']}/openvpn-csc\n"; 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': |