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.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/firewall_nat_server_edit.php b/usr/local/www/firewall_nat_server_edit.php
index 07cc295..2ed8624 100755
--- a/usr/local/www/firewall_nat_server_edit.php
+++ b/usr/local/www/firewall_nat_server_edit.php
@@ -38,16 +38,16 @@
##|*MATCH=firewall_nat_server_edit.php*
##|-PRIV
+function natservercmp($a, $b) {
+ return ipcmp($a['ipaddr'], $b['ipaddr']);
+}
+
function nat_server_rules_sort() {
global $g, $config;
if (!is_array($config['nat']['servernat']))
return;
- function natservercmp($a, $b) {
- return ipcmp($a['ipaddr'], $b['ipaddr']);
- }
-
usort($config['nat']['servernat'], "natservercmp");
}
OpenPOWER on IntegriCloud