Skip to content

Commit 0efa8e0

Browse files
committed
all: upd proxy field names;
1 parent b2e2572 commit 0efa8e0

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ go 1.26.5
44

55
require (
66
github.com/AdguardTeam/dnscrypt v0.0.2
7-
github.com/AdguardTeam/dnsproxy v0.83.2
7+
// TODO(m.kazantsev): Update when the corresponding pull request will be
8+
// merged.
9+
github.com/AdguardTeam/dnsproxy v0.83.3-0.20260810153019-3ed2ad5795ea
810
github.com/AdguardTeam/golibs v0.35.15
911
github.com/AdguardTeam/urlfilter v0.23.4
1012
github.com/NYTimes/gziphandler v1.1.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ github.com/AdguardTeam/dnscrypt v0.0.2 h1:kIFCyjYofKHug7RwPGOjVga81P0/zOQdbUN+7p
88
github.com/AdguardTeam/dnscrypt v0.0.2/go.mod h1:qCFs51rLfNzEDZqb6nz1tocVLnEearJ1zng6O3I6ecA=
99
github.com/AdguardTeam/dnsproxy v0.83.2 h1:a1QpTUkcwUP8MxL2Nu7OJX62h1SiJUwRsEbiihb5Y9A=
1010
github.com/AdguardTeam/dnsproxy v0.83.2/go.mod h1:O1K8Roc6lNhSB5ffBXx34Pw7/03b+HUNh6qIhR/ad2A=
11+
github.com/AdguardTeam/dnsproxy v0.83.3-0.20260810153019-3ed2ad5795ea h1:ms2w9VtDxHjmoD3n1q4CAZICBx6nOFoYrQ6UIIsxuFE=
12+
github.com/AdguardTeam/dnsproxy v0.83.3-0.20260810153019-3ed2ad5795ea/go.mod h1:O1K8Roc6lNhSB5ffBXx34Pw7/03b+HUNh6qIhR/ad2A=
1113
github.com/AdguardTeam/golibs v0.35.15 h1:KjksvvzlQqxdNvrz+O3FgMbZKZAQdcoCkgBz0mR7wFQ=
1214
github.com/AdguardTeam/golibs v0.35.15/go.mod h1:lScOIavWuRFL0vls26jKfQXaITP7OKO1qw75WYp5nYk=
1315
github.com/AdguardTeam/urlfilter v0.23.4 h1:3cwt5xj7lpK2t3sWtr9WI8mmsKP+RtpkdnEy7lrn8cg=

internal/dnsforward/dnsforward_internal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ func TestBlockCNAMEProtectionEnabled(t *testing.T) {
945945
IPv4: testIPv4,
946946
}
947947

948-
s.dnsProxy.UpstreamConfig = &proxy.UpstreamConfig{
948+
s.dnsProxy.UpstreamConf = &proxy.UpstreamConfig{
949949
Upstreams: []upstream.Upstream{testUpstm},
950950
}
951951
startDeferStop(t, s)

internal/next/dnssvc/dnssvc.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,7 @@ func (svc *Service) Config() (c *Config) {
265265
addrs[i] = a.(*net.UDPAddr).AddrPort()
266266
}
267267
} else {
268-
conf := svc.proxy.Config
269-
udpAddrs := conf.UDPListenAddr
268+
udpAddrs := svc.proxy.UDPListenAddr
270269
addrs = make([]netip.AddrPort, len(udpAddrs))
271270
for i, a := range udpAddrs {
272271
addrs[i] = a.AddrPort()

0 commit comments

Comments
 (0)