From ddd3876f922ce8bc8151eab2c31ec1e38f7239a7 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sun, 3 Nov 2024 12:35:01 +0000 Subject: [PATCH] chore(dns): upgrade dependency from v2.0.0-rc7 to v2.0.0-rc8 - do not log dial error twice - DNS subserver shuts down without waiting for connections to finish (UDP server would hang sometimes) - DNS over TLS dialer uses tls.Dialer instead of wrapping connection with tls.Client - connection type is just `tls` instead of `dns over tls` to reduce repetition in logs - exchange errors contain the request question in their context --- go.mod | 2 +- go.sum | 2 ++ internal/dns/settings.go | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index ce18e3e6..fcdb3fbb 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/klauspost/compress v1.17.9 github.com/klauspost/pgzip v1.2.6 github.com/pelletier/go-toml/v2 v2.2.2 - github.com/qdm12/dns/v2 v2.0.0-rc7 + github.com/qdm12/dns/v2 v2.0.0-rc8 github.com/qdm12/gosettings v0.4.3 github.com/qdm12/goshutdown v0.3.0 github.com/qdm12/gosplash v0.2.0 diff --git a/go.sum b/go.sum index afa82d03..4f5c8593 100644 --- a/go.sum +++ b/go.sum @@ -56,6 +56,8 @@ github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0leargg github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= github.com/qdm12/dns/v2 v2.0.0-rc7 h1:noFoWunMfFuJeIpcyTJsdS9BU7jRxxKrBV5xN2qjPHI= github.com/qdm12/dns/v2 v2.0.0-rc7/go.mod h1:VaF02KWEL7xNV4oKfG4N9nEv/kR6bqyIcBReCV5NJhw= +github.com/qdm12/dns/v2 v2.0.0-rc8 h1:kbgKPkbT+79nScfuZ0ZcVhksTGo8IUqQ8TTQGnQlZ18= +github.com/qdm12/dns/v2 v2.0.0-rc8/go.mod h1:VaF02KWEL7xNV4oKfG4N9nEv/kR6bqyIcBReCV5NJhw= github.com/qdm12/goservices v0.1.0 h1:9sODefm/yuIGS7ynCkEnNlMTAYn9GzPhtcK4F69JWvc= github.com/qdm12/goservices v0.1.0/go.mod h1:/JOFsAnHFiSjyoXxa5FlfX903h20K5u/3rLzCjYVMck= github.com/qdm12/gosettings v0.4.3 h1:oGAjiKVtml9oHVlPQo6H3yk6TmtWpVYicNeGFcM7AP8= diff --git a/internal/dns/settings.go b/internal/dns/settings.go index c7acaa6a..bfad5e12 100644 --- a/internal/dns/settings.go +++ b/internal/dns/settings.go @@ -29,7 +29,6 @@ func buildDoTSettings(settings settings.DNS, serverSettings.Logger = logger var dotSettings dot.Settings - dotSettings.Warner = logger providersData := provider.NewProviders() dotSettings.UpstreamResolvers = make([]provider.Provider, len(settings.DoT.Providers)) for i := range settings.DoT.Providers {