From 1217ea7a0990dc35f10348f09b2d19034f63ad30 Mon Sep 17 00:00:00 2001 From: mercury Date: Sun, 18 Aug 2024 11:54:12 +0400 Subject: [PATCH] fix empty packagelist --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 887bcb7..5249d97 100644 --- a/app/bot.php +++ b/app/bot.php @@ -4666,7 +4666,7 @@ DNS-over-HTTPS with IP: public function addPackageRule($route) { $p = $this->getPacConf(); - if (!empty($t = array_filter($p['packagelist']))) { + if (!empty($t = array_filter($p['packagelist'] ?: []))) { $route['rules'][] = [ 'package_name' => array_keys($t), 'outbound' => $p['app_outbound'] ? 'direct' : 'proxy',