diff options
author | smos <seth.mos@dds.nl> | 2012-06-28 11:53:55 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-06-28 11:59:35 +0200 |
commit | c1449c948480dd1a445a94b1aa991addd6e50e5b (patch) | |
tree | d1aeaff774b9731d9b0eabe790779f49b7c8709a /etc/inc/openvpn.inc | |
parent | ea87cde2b5067fff7b9af9d1465b219659c35bf5 (diff) | |
download | pfsense-c1449c948480dd1a445a94b1aa991addd6e50e5b.zip pfsense-c1449c948480dd1a445a94b1aa991addd6e50e5b.tar.gz |
If we only have a IPv6 interface we'll use that, otherwise a IPv4 address always has preference. Revisit this for OpenVPN 2.3
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r-- | etc/inc/openvpn.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index c41c558..f5e72ab 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -335,8 +335,9 @@ function openvpn_reconfigure($mode, $settings) { $cipher = $settings['crypto']; $interface = get_failover_interface($settings['interface']); - $ipaddr = $settings['ipaddr']; - $ipaddrv6 = $settings['ipaddrv6']; + /* we will fill out these variables below. */ + // $ipaddr = $settings['ipaddr']; + // $ipaddrv6 = $settings['ipaddrv6']; // If a specific ip address (VIP) is requested, use it. // Otherwise, if a specific interface is requested, use it @@ -389,9 +390,8 @@ function openvpn_reconfigure($mode, $settings) { if (is_ipaddrv4($iface_ip)) { $conf .= "local {$iface_ip}\n"; - } - if (is_ipaddrv6($iface_ipv6)) { - // $conf .= "local {$iface_ipv6}\n"; + } elseif (is_ipaddrv6($iface_ipv6)) { + $conf .= "local {$iface_ipv6}\n"; } if (openvpn_validate_engine($settings['engine']) && ($settings['engine'] != "none")) |