Skip to content

Commit

Permalink
all: imp docs, upd proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Apr 18, 2024
1 parent 0d33079 commit f07a509
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ module github.com/AdguardTeam/AdGuardHome
go 1.22.2

require (
// TODO(e.burkov): !! use release
github.com/AdguardTeam/dnsproxy v0.69.3-0.20240418123806-7b1e4fad6db9
github.com/AdguardTeam/dnsproxy v0.70.0
github.com/AdguardTeam/golibs v0.23.2
github.com/AdguardTeam/urlfilter v0.18.0
github.com/NYTimes/gziphandler v1.1.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/AdguardTeam/dnsproxy v0.69.3-0.20240418123806-7b1e4fad6db9 h1:RSvyrbgkcWMchUBU2BUOWVtQty6L2YeE4zBX1/xj+3g=
github.com/AdguardTeam/dnsproxy v0.69.3-0.20240418123806-7b1e4fad6db9/go.mod h1:zpA9eBxakSyjKC/bUac+UPSYTp/Q43aOmNlBV2/D6ug=
github.com/AdguardTeam/dnsproxy v0.70.0 h1:lwPQ+pfyCuorrP6RS90K628bRn8uvvTlnRyQuLKnf2o=
github.com/AdguardTeam/dnsproxy v0.70.0/go.mod h1:zpA9eBxakSyjKC/bUac+UPSYTp/Q43aOmNlBV2/D6ug=
github.com/AdguardTeam/golibs v0.23.2 h1:rMjYantwtQ39e8G4zBQ6ZLlm4s3XH30Bc9VxhoOHwao=
github.com/AdguardTeam/golibs v0.23.2/go.mod h1:o9i55Sx6v7qogRQeqaBfmLbC/pZqeMBWi015U5PTDY0=
github.com/AdguardTeam/urlfilter v0.18.0 h1:ZZzwODC/ADpjJSODxySrrUnt/fvOCfGFaCW6j+wsGfQ=
Expand Down
7 changes: 5 additions & 2 deletions internal/dnsforward/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,11 @@ func (s *Server) processDHCPAddrs(dctx *dnsContext) (rc resultCode) {
}

req := pctx.Req
q := req.Question[0]
pref := pctx.RequestedPrivateRDNS
if pref == (netip.Prefix{}) || req.Question[0].Qtype != dns.TypePTR {
// TODO(e.burkov): Consider answering authoritatively for SOA and NS
// queries.
if pref == (netip.Prefix{}) || q.Qtype != dns.TypePTR {
return resultCodeSuccess
}

Expand All @@ -397,7 +400,7 @@ func (s *Server) processDHCPAddrs(dctx *dnsContext) (rc resultCode) {
resp := s.replyCompressed(req)
ptr := &dns.PTR{
Hdr: dns.RR_Header{
Name: req.Question[0].Name,
Name: q.Name,
Rrtype: dns.TypePTR,
// TODO(e.burkov): Use [dhcpsvc.Lease.Expiry]. See
// https://github.com/AdguardTeam/AdGuardHome/issues/3932.
Expand Down

0 comments on commit f07a509

Please sign in to comment.