From a55e9c701c2fc8914e0aebf12e37038f59b07cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Mon, 30 Mar 2009 00:37:45 +0000 Subject: * 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. --- usr/local/www/firewall_nat_1to1_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/www/firewall_nat_1to1_edit.php') diff --git a/usr/local/www/firewall_nat_1to1_edit.php b/usr/local/www/firewall_nat_1to1_edit.php index 116ca79..7ef2fab 100755 --- a/usr/local/www/firewall_nat_1to1_edit.php +++ b/usr/local/www/firewall_nat_1to1_edit.php @@ -85,7 +85,7 @@ if ($_POST) { if (is_ipaddr($config['interfaces']['wan']['ipaddr'])) { if (check_subnets_overlap($_POST['external'], $_POST['subnet'], - $config['interfaces']['wan']['ipaddr'], 32)) + get_interface_ip("wan"), 32)) $input_errors[] = "The WAN IP address may not be used in a 1:1 rule."; } -- cgit v1.1