From 550a8ad3b7466cc6ee617d18a3000418f8345794 Mon Sep 17 00:00:00 2001 From: mercury Date: Thu, 21 Nov 2024 01:37:22 +0400 Subject: [PATCH] fix ip/32 analyze --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index ac34ef2..76aa3ed 100644 --- a/app/bot.php +++ b/app/bot.php @@ -4377,7 +4377,7 @@ DNS-over-HTTPS with IP: $pac = $this->getPacConf(); foreach (array_merge($pac['white'] ?: [], $pac['deny'] ?: [], ['10.10.0.0/23']) as $v) { if (!empty(preg_match('~^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/(\d{1,2})~', $v, $m))) { - for ($i = ip2long($m[1]); $i < ip2long($m[1]) + pow(2, 32 - $m[2]) - 1; $i++) { + for ($i = ip2long($m[1]); $i <= ip2long($m[1]) + pow(2, 32 - $m[2]) - 1; $i++) { $xr[long2ip($i)] = true; } } else {