summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 4db9900..fb7d303 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -207,7 +207,7 @@ function vpn_ipsec_configure($ipchg = false)
$pfd = fopen("/var/db/ipsecpinghosts", "a");
$iflist = get_configured_interface_list();
foreach ($iflist as $ifent => $ifname) {
- $interface_ip = get_interface_ip($ifnet);
+ $interface_ip = get_interface_ip($ifent);
$local_subnet = ipsec_idinfo_to_cidr($ph2ent['localid'], true);
if (ip_in_subnet($interface_ip, $local_subnet))
$srcip = $interface_ip;
OpenPOWER on IntegriCloud