From c2141f09e7fea8cb3d3b760a91cc6091c51d6163 Mon Sep 17 00:00:00 2001 From: xqzr <34030394+xqzr@users.noreply.github.com> Date: Wed, 27 Aug 2025 17:37:13 +0800 Subject: [PATCH] Test_parseResponse(t *testing.T): Use dns.google for IPv6 (#5060) --- app/dns/dnscommon_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/dns/dnscommon_test.go b/app/dns/dnscommon_test.go index 7e06baaf..e77117c6 100644 --- a/app/dns/dnscommon_test.go +++ b/app/dns/dnscommon_test.go @@ -39,8 +39,8 @@ func Test_parseResponse(t *testing.T) { common.Must2(dns.NewRR("google.com. IN CNAME fake.google.com")), common.Must2(dns.NewRR("google.com. IN CNAME m.test.google.com")), common.Must2(dns.NewRR("google.com. IN CNAME test.google.com")), - common.Must2(dns.NewRR("google.com. IN AAAA 2001::123:8888")), - common.Must2(dns.NewRR("google.com. IN AAAA 2001::123:8844")), + common.Must2(dns.NewRR("google.com. IN AAAA 2001:4860:4860::8888")), + common.Must2(dns.NewRR("google.com. IN AAAA 2001:4860:4860::8844")), ) p = append(p, common.Must2(ans.Pack())) @@ -72,7 +72,7 @@ func Test_parseResponse(t *testing.T) { }, { "aaaa record", - &IPRecord{2, []net.IP{net.ParseIP("2001::123:8888"), net.ParseIP("2001::123:8844")}, time.Time{}, dnsmessage.RCodeSuccess, nil}, + &IPRecord{2, []net.IP{net.ParseIP("2001:4860:4860::8888"), net.ParseIP("2001:4860:4860::8844")}, time.Time{}, dnsmessage.RCodeSuccess, nil}, false, }, }