Skip to content

Commit

Permalink
contrib/miekg/dns: use tcp4 instead of tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahkm committed Dec 17, 2024
1 parent c3fc27c commit 7c08bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/miekg/dns/dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func assertClientSpan(t *testing.T, s mocktracer.Span) {
}

func getFreeAddr(t *testing.T) net.Addr {
li, err := net.Listen("tcp", "127.0.0.1:2020")
li, err := net.Listen("tcp4", "127.0.0.1:2020")
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 7c08bec

Please sign in to comment.