Compare commits

...

2 Commits

Author SHA1 Message Date
mercury 99bce7a988 update version 2024-12-09 14:30:26 +04:00
mercury 446a5d7150 mihomo: rule-providers add format 2024-12-09 13:32:25 +04:00
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -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)
]);
+2
View File
@@ -1,3 +1,5 @@
09.12.2024 v1.111
- mihomo: фикс rule-providers format
06.12.2024 v1.110
- ruleset для mihomo
28.11.2024 v1.109