diff options
Diffstat (limited to 'usr/local/www/vpn_l2tp.php')
-rw-r--r-- | usr/local/www/vpn_l2tp.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/vpn_l2tp.php b/usr/local/www/vpn_l2tp.php index 2dc487a..2e6829a 100644 --- a/usr/local/www/vpn_l2tp.php +++ b/usr/local/www/vpn_l2tp.php @@ -94,7 +94,7 @@ if ($_POST) { (ip2long($_POST['localip']) <= $subnet_end)) { $input_errors[] = gettext("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[] = gettext("The specified server address is equal to the LAN interface address."); } } |