Merge branch 'dev' into singbox

This commit is contained in:
mercury
2024-08-18 11:54:39 +04:00
+1 -1
View File
@@ -4819,7 +4819,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',