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

@@ -273,7 +273,7 @@ var IPv4Servers = DNSList{
var DefaultResolver = &net.Resolver{
PreferGo: true,
Dial: func(ctx context.Context, nw, _ string) (net.Conn, error) {
if ip.IsIPv6Available.Get() {
if ip.IsIPv6Available {
return IPv6Servers.DialContext(ctx, nil, terasu.DefaultFirstFragmentLen)
}
return IPv4Servers.DialContext(ctx, nil, terasu.DefaultFirstFragmentLen)