From 89c0139ef6118eb37cdd45d5661aa338a1084268 Mon Sep 17 00:00:00 2001 From: mercury Date: Fri, 25 Oct 2024 17:38:50 +0400 Subject: [PATCH] show safe search status --- app/bot.php | 2 ++ config/AdGuardHome.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/app/bot.php b/app/bot.php index a19c9ec..d25d09a 100644 --- a/app/bot.php +++ b/app/bot.php @@ -5330,6 +5330,8 @@ 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"; } + $safesearch = yaml_parse_file($this->adguard)['filtering']['safe_search']['enabled']; + $text .= "\n\nsafesearch: " . $this->i18n($safesearch ? 'on' : 'off'); $data = [ [ [ diff --git a/config/AdGuardHome.yaml b/config/AdGuardHome.yaml index 16a75c9..b91a8ed 100644 --- a/config/AdGuardHome.yaml +++ b/config/AdGuardHome.yaml @@ -16,5 +16,8 @@ dns: tls: certificate_path: /certs/cert_public private_key_path: /certs/cert_private +filtering: + safe_search: + enabled: false log: file: /logs/adguard