summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_pppoe.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/vpn_pppoe.php')
-rwxr-xr-xusr/local/www/vpn_pppoe.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/vpn_pppoe.php b/usr/local/www/vpn_pppoe.php
index 12c6cd8..192bb61 100755
--- a/usr/local/www/vpn_pppoe.php
+++ b/usr/local/www/vpn_pppoe.php
@@ -105,7 +105,7 @@ if ($_POST) {
(ip2long($_POST['localip']) <= $subnet_end)) {
$input_errors[] = "The specified server address lies in the remote subnet.";
}
- if ($_POST['localip'] == $config['interfaces']['lan']['ipaddr']) {
+ if ($_POST['localip'] == get_interface_ip("lan")) {
$input_errors[] = "The specified server address is equal to the LAN interface address.";
}
}
OpenPOWER on IntegriCloud