From 4c43bd91addbbbdfbd9a212f689b599adb202167 Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Thu, 26 Jun 2025 13:57:49 +0300 Subject: [PATCH] dnsforward: imp docs --- internal/dnsforward/config.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/dnsforward/config.go b/internal/dnsforward/config.go index 00e61861..198b7702 100644 --- a/internal/dnsforward/config.go +++ b/internal/dnsforward/config.go @@ -203,7 +203,8 @@ type TLSConfig struct { // DNSCryptConfig contains the configuration settings for a DNSCrypt server. type DNSCryptConfig struct { - // ResolverCert is the certificate used for DNSCrypt connections. + // ResolverCert is the certificate used for DNSCrypt connections. It is not + // nil if there is at least one UDP or TCP address present. ResolverCert *dnscrypt.Cert // UDPListenAddrs are the addresses to listen on for DNSCrypt UDP @@ -214,7 +215,8 @@ type DNSCryptConfig struct { // connections. TCPListenAddrs []*net.TCPAddr - // ProviderName is the name of the DNSCrypt provider. + // ProviderName is the name of the DNSCrypt provider. It is not empty if + // there is at least one UDP or TCP address present. ProviderName string }