1
0
mirror of https://github.com/fumiama/terasu.git synced 2026-06-27 16:20:25 +08:00

fix(dns): fast-failed on RST

This commit is contained in:
源文雨
2025-10-03 14:47:40 +08:00
parent 1d9b679c36
commit 9974bdca12
9 changed files with 86 additions and 110 deletions

View File

@@ -28,7 +28,7 @@ func TestResolverFallback(t *testing.T) {
t.Log("IsIPv6Available:", ip.IsIPv6Available.Get())
if ip.IsIPv6Available.Get() {
addrs, err := IPv6Servers.LookupHostFallback(context.TODO(), "huggingface.co")
addrs, err := IPv6Servers.lookupHostDoH(context.TODO(), "huggingface.co")
if err != nil {
t.Fatal(err)
}
@@ -37,7 +37,7 @@ func TestResolverFallback(t *testing.T) {
t.Fail()
}
}
addrs, err := IPv4Servers.LookupHostFallback(context.TODO(), "huggingface.co")
addrs, err := IPv4Servers.lookupHostDoH(context.TODO(), "huggingface.co")
if err != nil {
t.Fatal(err)
}