scanner: sort ips

This commit is contained in:
mercury
2024-11-14 00:35:15 +04:00
parent ad7351dc9a
commit 7449e8bba3
+2
View File
@@ -4524,12 +4524,14 @@ DNS-over-HTTPS with IP:
$pac = $this->getPacConf();
if (!empty($pac['white'])) {
$pac['white'] = array_unique($pac['white']);
sort($pac['white']);
foreach ($pac['white'] as $v) {
$text .= "allow $v;\n";
}
}
if (!empty($pac['deny'])) {
$pac['deny'] = array_unique($pac['deny']);
sort($pac['deny']);
foreach ($pac['deny'] as $v) {
$text .= "deny $v;\n";
}