From ed4bf40bbdd66fc9e7cbd56a95fbfd1cafa1195b Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 8 Nov 2018 23:00:35 +0100 Subject: [PATCH] firewall: nicer to sort them --- src/etc/inc/filter.lib.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/filter.lib.inc b/src/etc/inc/filter.lib.inc index 777119204..c6fdf7cd1 100644 --- a/src/etc/inc/filter.lib.inc +++ b/src/etc/inc/filter.lib.inc @@ -117,10 +117,10 @@ function filter_core_antilockout_ports() $lockout_ports[] = empty($config['system']['ssh']['port']) ? "22" : $config['system']['ssh']['port']; } } + sort($lockout_ports); return $lockout_ports; } - /** * recursively collect port alias(es) contents * @param $aliasname string alias name or null to fetch all aliases