diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-06-18 21:32:00 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-06-18 21:32:00 +0000 |
commit | 015cbe0e88907794657132f4f55f5a2a20455f9e (patch) | |
tree | 04ebcfd625fe551a08da465526b9917f2e534602 /etc | |
parent | b16c077d7cd24972719980bb09421e22037d1b0d (diff) | |
download | pfsense-015cbe0e88907794657132f4f55f5a2a20455f9e.zip pfsense-015cbe0e88907794657132f4f55f5a2a20455f9e.tar.gz |
Interface list improvements.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/vpn.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index ff658e3..7389645 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -230,8 +230,9 @@ function vpn_ipsec_configure($ipchg = false) { if ($tunnel['pinghost']) { $pfd = fopen("/var/db/ipsecpinghosts", "a"); $iflist = array("lan" => "lan", "wan" => "wan"); - for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) - $iflist['opt' . $i] = "opt{$i}"; + /* if list */ + $iflist = get_configured_interface_list(true); + foreach ($iflist as $ifent => $ifname) { $interface_ip = find_interface_ip($config['interfaces'][$ifname]['if']); if (ip_in_subnet($interface_ip, $sa . "/" . $sn)) |