diff options
author | Ermal <eri@pfsense.org> | 2010-03-12 23:02:51 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-12 23:09:47 +0000 |
commit | 5db9498d9bae9433da293f27cb341a2d397e23e4 (patch) | |
tree | 2d3db98075ccc657234e621a12d16b5f37412b2b /etc/inc | |
parent | 28fcddcdd68cf6c72119305462696a1bb6dae0b8 (diff) | |
download | pfsense-5db9498d9bae9433da293f27cb341a2d397e23e4.zip pfsense-5db9498d9bae9433da293f27cb341a2d397e23e4.tar.gz |
Fix local and nobind for client settings
Diffstat (limited to 'etc/inc')
-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 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 |