summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_1to1_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-11-26 19:22:38 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-11-26 19:22:38 -0200
commit3f0cc2f41dcbda4342244130aab6772c6bc358d0 (patch)
tree79787d98bda1d4ce2fc85034eb80780cd6a5e8b4 /usr/local/www/firewall_nat_1to1_edit.php
parent70cb037590911a368accecc5be3c806028e1c623 (diff)
downloadpfsense-3f0cc2f41dcbda4342244130aab6772c6bc358d0.zip
pfsense-3f0cc2f41dcbda4342244130aab6772c6bc358d0.tar.gz
Stop sorting 1to1 rules and leave user decide the order. Fixes #3327
Diffstat (limited to 'usr/local/www/firewall_nat_1to1_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_1to1_edit.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/usr/local/www/firewall_nat_1to1_edit.php b/usr/local/www/firewall_nat_1to1_edit.php
index 679df94..726a304 100755
--- a/usr/local/www/firewall_nat_1to1_edit.php
+++ b/usr/local/www/firewall_nat_1to1_edit.php
@@ -39,19 +39,6 @@
##|*MATCH=firewall_nat_1to1_edit.php*
##|-PRIV
-function nat1to1cmp($a, $b) {
- return ipcmp($a['external'], $b['external']);
-}
-
-function nat_1to1_rules_sort() {
- global $g, $config;
-
- if (!is_array($config['nat']['onetoone']))
- return;
-
- usort($config['nat']['onetoone'], "nat1to1cmp");
-}
-
require("guiconfig.inc");
require_once("interfaces.inc");
require_once("filter.inc");
@@ -224,7 +211,6 @@ if ($_POST) {
else
$a_1to1[] = $natent;
}
- nat_1to1_rules_sort();
if (write_config())
mark_subsystem_dirty('natconf');
OpenPOWER on IntegriCloud