From a9d16eadce156d5199d89ce43be2633f3c8ac5bc Mon Sep 17 00:00:00 2001 From: mercury Date: Sun, 10 Mar 2024 15:31:40 +0400 Subject: [PATCH] fix adguard menu --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index ba8b759..875dea3 100644 --- a/app/bot.php +++ b/app/bot.php @@ -3507,7 +3507,7 @@ DNS-over-HTTPS with IP: $ip = $this->ip; $domain = $conf['domain'] ?: $ip; $scheme = empty($ssl = $this->nginxGetTypeCert()) ? 'http' : 'https'; - $text = $conf['adgbrowser'] ? "$scheme://$domain/adguard\nLogin: admin\nPass: {$conf['adpswd']}\n\n" : ''; + $text = "$scheme://$domain/adguard\nLogin: admin\nPass: {$conf['adpswd']}\n\n"; if ($ssl) { $text .= "DNS over HTTPS:\n$ip\n$scheme://$domain/dns-query" . ($conf['adguardkey'] ? "/{$conf['adguardkey']}" : '') . "\n\n"; $text .= "DNS over TLS:\ntls://" . ($conf['adguardkey'] ? "{$conf['adguardkey']}." : '') . "$domain";