From 0b95c7500542ec0f55520e889a833ad10cf09ac2 Mon Sep 17 00:00:00 2001 From: mercury Date: Wed, 6 Nov 2024 22:35:32 +0400 Subject: [PATCH] timeout for check status adguard --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 000b9f8..70c7987 100644 --- a/app/bot.php +++ b/app/bot.php @@ -5489,7 +5489,7 @@ DNS-over-HTTPS with IP: $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"; } - $status = $this->i18n(exec("JSON=1 dnslookup google.com ad") ? 'on' : 'off'); + $status = $this->i18n(exec("JSON=1 timeout 2 dnslookup google.com ad") ? 'on' : 'off'); $safesearch = yaml_parse_file($this->adguard)['filtering']['safe_search']['enabled']; $text .= "\n\nstatus: $status\t\tsafesearch: " . $this->i18n($safesearch ? 'on' : 'off'); $allowedClients = yaml_parse_file($this->adguard)['dns']['allowed_clients'];