fix: 离线模式添加对NATType的联控

This commit is contained in:
spiritlhl
2025-06-29 02:34:42 +00:00
parent e540cc384b
commit 3a77ffcdea
3 changed files with 20 additions and 9 deletions

View File

@@ -8,6 +8,8 @@ import (
"time"
)
var StackType string // 联控stun检测
type NetCheckResult struct {
HasIPv4 bool
HasIPv6 bool
@@ -151,6 +153,7 @@ result:
} else if hasV6 {
stack = "IPv6"
}
StackType = stack
return NetCheckResult{
HasIPv4: hasV4,
HasIPv6: hasV6,