From 5e860a4896860894804c2e2c7c57d25758b1f215 Mon Sep 17 00:00:00 2001 From: mercury Date: Sat, 22 Feb 2025 18:47:36 +0400 Subject: [PATCH] fix addruleset for block outbound --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 383da54..d01440d 100644 --- a/app/bot.php +++ b/app/bot.php @@ -6654,7 +6654,7 @@ DNS-over-HTTPS with IP: if (!empty($route['rules'])) { foreach ($route['rules'] as $k => $v) { if (!empty($v['addruleset'])) { - $t[$v['outbound']] = $k; + $t[$v['outbound'] ?: 'block'] = $k; } } $p = $this->getPacConf();