summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-06-30 11:07:50 -0400
committerjim-p <jimp@pfsense.org>2010-06-30 11:07:50 -0400
commit5d8cd81abdd4a3b5e2f4af40b9714fd7066e33fb (patch)
tree252e1f5232067cc21f8ba1281124ae06499eb60d /etc
parent107794cca9a2393a54fb17b84f773b7562a4d810 (diff)
downloadpfsense-5d8cd81abdd4a3b5e2f4af40b9714fd7066e33fb.zip
pfsense-5d8cd81abdd4a3b5e2f4af40b9714fd7066e33fb.tar.gz
Reorg this test a little, and make sure we only add client-to-client for remote access types.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/openvpn.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 3fe4574..3a9701a 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -416,17 +416,16 @@ function openvpn_reconfigure($mode,& $settings) {
$conf .= "push \"route $ip $mask\"\n";
}
- // Configure client dhcp options
switch($settings['mode']) {
case 'server_tls':
case 'server_user':
case 'server_tls_user':
+ // Configure client dhcp options
openvpn_add_dhcpopts($settings, $conf);
+ if ($settings['client2client'])
+ $conf .= "client-to-client\n";
break;
}
-
- if ($settings['client2client'])
- $conf .= "client-to-client\n";
}
// client specific settings
OpenPOWER on IntegriCloud