summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_server_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/firewall_nat_server_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_server_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_server_edit.php b/usr/local/www/firewall_nat_server_edit.php
index 4558526..7cee424 100755
--- a/usr/local/www/firewall_nat_server_edit.php
+++ b/usr/local/www/firewall_nat_server_edit.php
@@ -71,7 +71,7 @@ if ($_POST) {
$input_errors[] = "A valid external IP address must be specified.";
}
- if ($_POST['ipaddr'] == $config['interfaces']['wan']['ipaddr'])
+ if ($_POST['ipaddr'] == get_interface_ip("wan"))
$input_errors[] = "The WAN IP address may not be used in a NAT Address entry.";
/* check for overlaps with other server NAT */
OpenPOWER on IntegriCloud