summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_server_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-03-30 00:37:45 +0000
committerErmal Luçi <eri@pfsense.org>2009-03-30 00:38:36 +0000
commita55e9c701c2fc8914e0aebf12e37038f59b07cf8 (patch)
tree05b5a1bc85f8742706649429ec164f576d240975 /usr/local/www/firewall_nat_server_edit.php
parentcc460ee980e427bf4acdb8a4903e3278df59ea94 (diff)
downloadpfsense-a55e9c701c2fc8914e0aebf12e37038f59b07cf8.zip
pfsense-a55e9c701c2fc8914e0aebf12e37038f59b07cf8.tar.gz
* Hide interfaces internals to other code and use the propper interfaces.
Basically use get_interface*() functions instead of accessing fields like 'ipaddr'/'descr' etc... * Make get_interfaces_with_gateway less heavyweight by getting information from the configuration stored in config.xml * Some other missed custom interface list building and substituing with propper get_configured_interface*() NOTE: This should give indipendce on dynamic interfaces on some services that before could not be used on top of this type of interfaces.
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