diff options
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 |