vless: singbox 1.11 migrate

This commit is contained in:
mercury
2025-02-08 15:51:44 +04:00
parent 0e47a771cc
commit f527888db8
2 changed files with 21 additions and 23 deletions
+1 -1
View File
@@ -6499,7 +6499,7 @@ DNS-over-HTTPS with IP:
$c['route'] = $this->createRuleSet($c['route'], $uid, $domain);
if (!empty($c['route']['rules'])) {
foreach ($c['route']['rules'] as $k => $v) {
if (count($v) < 2) {
if (count($v) == 1 && array_key_exists('outbound', $v)) {
unset($c['route']['rules'][$k]);
}
}