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

feat: drop ipv6 test due to server down

This commit is contained in:
源文雨
2025-10-06 02:01:37 +08:00
parent 15625807a5
commit 2732915dda
7 changed files with 10 additions and 38 deletions

View File

@@ -16,7 +16,7 @@ func LookupHost(ctx context.Context, host string) (addrs []string, err error) {
if len(addrs) == 0 {
addrs, err = DefaultResolver.LookupHost(ctx, host)
if err != nil {
if ip.IsIPv6Available.Get() {
if ip.IsIPv6Available {
addrs, err = IPv6Servers.lookupHostDoH(ctx, host)
} else {
addrs, err = IPv4Servers.lookupHostDoH(ctx, host)