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.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index ce4e477..5cd0897 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -120,7 +120,7 @@ function vpn_ipsec_configure($ipchg = false)
for ($x = 0; $x < $number_of_gifs; $x++)
mwexec("/sbin/ifconfig gif" . $x . " delete");
- $curwanip = get_current_wan_address();
+ $curwanip = get_interface_ip();
$syscfg = $config['system'];
$ipseccfg = $config['ipsec'];
@@ -734,7 +734,7 @@ EOD;
if (isset ($ph2ent['creategif'])) {
$number_of_gifs = find_last_gif_device();
$number_of_gifs++;
- $curwanip = get_current_wan_address();
+ $curwanip = get_interface_ip();
if ($config['installedpackages']['sasyncd']['config'] <> "") {
foreach ($config['installedpackages']['sasyncd']['config'] as $sasyncd) {
if ($sasyncd['ip'] <> "")
OpenPOWER on IntegriCloud