From 1b8b44dc661b45ea2752467a2c57433be69c051b Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 6 May 2010 10:16:16 -0400 Subject: Add client-to-client to OpenVPN server config if the option is checked. Resolves #572. --- etc/inc/openvpn.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc') diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 66a81fc..4343d5d 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -424,6 +424,9 @@ function openvpn_reconfigure($mode,& $settings) { openvpn_add_dhcpopts($settings, $conf); break; } + + if ($settings['client2client']) + $conf .= "client-to-client\n"; } // client specific settings -- cgit v1.1