diff --git a/app/bot.php b/app/bot.php index d47f7a0..50c4626 100644 --- a/app/bot.php +++ b/app/bot.php @@ -6165,15 +6165,17 @@ DNS-over-HTTPS with IP: foreach ($p['rulessetlist'] as $k => $v) { if (!empty($v)) { [$type, $behavior, $time, $url] = explode(':', $k, 4); - if (preg_match('~\.(?:mrs|yaml|yml)$~', $url)) { + if (preg_match('~\.(mrs|yaml|yml)$~', $url, $m)) { $c['rule-providers'][$url] = [ 'type' => 'http', 'url' => $url, 'interval' => (int) $time, 'behavior' => $behavior, + 'format' => $m[1], ]; switch ($type) { case 'reject': + case 'REJECT': array_unshift($c['rules'], [ 'RULE-SET', $url, strtoupper($type) ]);