diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-11-26 19:22:38 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-11-26 19:22:38 -0200 |
commit | 3f0cc2f41dcbda4342244130aab6772c6bc358d0 (patch) | |
tree | 79787d98bda1d4ce2fc85034eb80780cd6a5e8b4 /usr/local | |
parent | 70cb037590911a368accecc5be3c806028e1c623 (diff) | |
download | pfsense-3f0cc2f41dcbda4342244130aab6772c6bc358d0.zip pfsense-3f0cc2f41dcbda4342244130aab6772c6bc358d0.tar.gz |
Stop sorting 1to1 rules and leave user decide the order. Fixes #3327
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_nat_1to1_edit.php | 14 |
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'); |