Skip to content

Commit

Permalink
upstream: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed May 29, 2023
1 parent 2161ced commit 100b023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion upstream/upstream_plain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestUpstream_plainDNS(t *testing.T) {
func TestUpstream_plainDNS_badID(t *testing.T) {
req := createTestMessage()
badIDResp := respondToTestMessage(req)
badIDResp.Id += 1
badIDResp.Id++

srv := startDNSServer(t, func(w dns.ResponseWriter, _ *dns.Msg) {
require.NoError(testutil.PanicT{}, w.WriteMsg(badIDResp))
Expand Down
4 changes: 3 additions & 1 deletion upstream/upstreamresolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ type upstreamResolver struct {
var _ Resolver = upstreamResolver{}

// LookupNetIP implements the [Resolver] interface for upstreamResolver.
//
// TODO(e.burkov): Use context.
func (r upstreamResolver) LookupNetIP(
ctx context.Context,
_ context.Context,
network string,
host string,
) (ipAddrs []netip.Addr, err error) {
Expand Down

0 comments on commit 100b023

Please sign in to comment.