mihomo: fix empty rules

This commit is contained in:
mercury
2024-12-06 23:36:43 +04:00
parent bd5e10fa23
commit e1c13480d1
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -5328,7 +5328,7 @@ DNS-over-HTTPS with IP:
$pac = $this->getPacConf();
$domain = $this->getDomain();
$hash = substr(md5($this->key), 0, 8);
$text[] = "Menu -> " . $this->i18n('xray') . " -> $type templates";
$text[] = "Menu -> " . $this->i18n('xray') . " -> " . $this->i18n($type) . " templates";
$text[] = <<<TEXT
<code>~outbound~</code>
<code>"~pac~"</code>
@@ -6141,6 +6141,9 @@ DNS-over-HTTPS with IP:
$c = $this->clashRuleSet($c);
if (!empty($c['rules'])) {
$c['rules'] = $this->clashRules($c['rules']);
if (count($c['rules']) == 1) {
unset($c['rules']);
}
}
break;
}
+4
View File
@@ -265,6 +265,10 @@ $i = [
'en' => 'Vless',
'ru' => 'Vless',
],
'clash' => [
'en' => 'mihomo',
'ru' => 'mihomo',
],
'geodb' => [
'en' => 'GeoIp/GeoSite',
'ru' => 'GeoIp/GeoSite',