From 32e49088c2f7fb63b03d22a79166feebe03b007e Mon Sep 17 00:00:00 2001 From: mercury Date: Thu, 12 Dec 2024 23:21:17 +0400 Subject: [PATCH] fix delete upstream --- app/bot.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/bot.php b/app/bot.php index a336765..0166486 100644 --- a/app/bot.php +++ b/app/bot.php @@ -2554,6 +2554,7 @@ DNS-over-HTTPS with IP: $this->stopAd(); $c = yaml_parse_file($this->adguard); unset($c['dns']['upstream_dns'][$k]); + $c['dns']['upstream_dns'] = array_values($c['dns']['upstream_dns']); yaml_emit_file($this->adguard, $c); $this->startAd(); $this->menu('adguard');