Skip to content

Commit

Permalink
internal/resolver: Remove deprecated Unsafe field
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomás Senart committed Dec 19, 2018
1 parent 030b2ec commit 8c61ac5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions internal/resolver/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,11 @@ func TestResolver(t *testing.T) {
done := make(chan struct{})

ds := dns.Server{
Addr: "127.0.0.1:0",
Net: "udp",
UDPSize: dns.MinMsgSize,
ReadTimeout: 2 * time.Second,
WriteTimeout: 2 * time.Second,
// Unsafe instructs the server to disregard any sanity checks and directly hand the message to
// the handler. It will specifically not check if the query has the QR bit not set.
Unsafe: false,
Addr: "127.0.0.1:0",
Net: "udp",
UDPSize: dns.MinMsgSize,
ReadTimeout: 2 * time.Second,
WriteTimeout: 2 * time.Second,
NotifyStartedFunc: func() { close(done) },
}

Expand Down

0 comments on commit 8c61ac5

Please sign in to comment.