1
0
mirror of https://github.com/fumiama/terasu.git synced 2026-06-10 21:24:46 +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

@@ -121,7 +121,7 @@ func lookupdoh(ctx context.Context, server, u string) (jr dohjsonresponse, err e
if err == nil {
return
}
if ip.IsIPv6Available.Get() {
if ip.IsIPv6Available {
jr, err = lookupdohwithtype(ctx, server, u, recordTypeA)
}
return
@@ -157,7 +157,7 @@ func lookupdohwithtype(ctx context.Context, server, u string, typ recordType) (j
}
func preferreddohtype() recordType {
if ip.IsIPv6Available.Get() {
if ip.IsIPv6Available {
return recordTypeAAAA
}
return recordTypeA