diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-02-26 01:50:50 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-02-26 01:50:50 -0600 |
commit | 636918c95f52c05546ec5737b30fcfb0fe496216 (patch) | |
tree | 9b4a8fc36fb1a32ea0409e4af35818a04825e662 | |
parent | 316d72e21163720dd6137628d188b5921f1b399a (diff) | |
download | pfsense-636918c95f52c05546ec5737b30fcfb0fe496216.zip pfsense-636918c95f52c05546ec5737b30fcfb0fe496216.tar.gz |
Fix OpenVPN ifconfig. Ticket #5930
-rw-r--r-- | src/etc/inc/openvpn.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/openvpn.inc b/src/etc/inc/openvpn.inc index fc61afc..a2fdb30 100644 --- a/src/etc/inc/openvpn.inc +++ b/src/etc/inc/openvpn.inc @@ -941,7 +941,7 @@ function openvpn_reconfigure($mode, $settings) { if (!empty($settings['tunnel_network'])) { list($ip, $cidr) = explode('/', $settings['tunnel_network']); $mask = gen_subnet_mask($cidr); - list($ip1, $ip2) = openvpn_get_interface_ip($tunnel_ip, $cidr); + list($ip1, $ip2) = openvpn_get_interface_ip($ip, $cidr); if ($settings['dev_mode'] == 'tun') { $conf .= "ifconfig {$ip2} {$ip1}\n"; } else { |