summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-12 23:02:51 +0000
committerErmal <eri@pfsense.org>2010-03-12 23:09:47 +0000
commit5db9498d9bae9433da293f27cb341a2d397e23e4 (patch)
tree2d3db98075ccc657234e621a12d16b5f37412b2b /etc/inc
parent28fcddcdd68cf6c72119305462696a1bb6dae0b8 (diff)
downloadpfsense-5db9498d9bae9433da293f27cb341a2d397e23e4.zip
pfsense-5db9498d9bae9433da293f27cb341a2d397e23e4.tar.gz
Fix local and nobind for client settings
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/openvpn.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 766dce3..19be97e 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -340,7 +340,8 @@ function openvpn_reconfigure($mode,& $settings) {
$conf .= "down /etc/rc.filter_configure\n";
if (!empty($iface_ip)) {
- $conf .= "local {$iface_ip}\n";
+ if ($mode == "server" || ($mode == "client" && !empty($settings['local_port'])))
+ $conf .= "local {$iface_ip}\n";
}
// server specific settings
OpenPOWER on IntegriCloud