From 7c08beca645f53e6782546bb3fcf1927094e6bf4 Mon Sep 17 00:00:00 2001
From: Hannah Kim <hannahs.kim@datadoghq.com>
Date: Tue, 17 Dec 2024 14:53:48 -0500
Subject: [PATCH] contrib/miekg/dns: use tcp4 instead of tcp

---
 contrib/miekg/dns/dns_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/miekg/dns/dns_test.go b/contrib/miekg/dns/dns_test.go
index 8a808e5fd4..609a757902 100644
--- a/contrib/miekg/dns/dns_test.go
+++ b/contrib/miekg/dns/dns_test.go
@@ -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)
 	}