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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user