fix: 修改已经重命名的字段

This commit is contained in:
spiritlhl
2025-10-31 07:22:23 +00:00
parent b403d71115
commit 793c44163a
2 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ func UpstreamsCheck() {
wg.Add(1)
go func() {
defer wg.Done()
result := backtrace.BackTrace(uts.IPV6)
result := backtrace.BackTrace(executor.IPV6)
results.backtraceResult = result
}()
wg.Wait()
+12 -12
View File
@@ -124,14 +124,14 @@ func OnlyBasicsIpInfo(language string) (string, string, string) {
}
basicInfo := ipInfo
if strings.Contains(ipInfo, "IPV4") && strings.Contains(ipInfo, "IPV6") && ipv4 != "" && ipv6 != "" {
uts.IPV4 = true
uts.IPV6 = true
executor.IPV4 = true
executor.IPV6 = true
} else if strings.Contains(ipInfo, "IPV4") && ipv4 != "" {
uts.IPV4 = true
uts.IPV6 = false
executor.IPV4 = true
executor.IPV6 = false
} else if strings.Contains(ipInfo, "IPV6") && ipv6 != "" {
uts.IPV6 = true
uts.IPV4 = false
executor.IPV6 = true
executor.IPV4 = false
}
basicInfo = strings.ReplaceAll(basicInfo, "\n\n", "\n")
return ipv4, ipv6, basicInfo
@@ -157,20 +157,20 @@ func BasicsAndSecurityCheck(language, nt3CheckType string, securityCheckStatus b
wgt.Wait()
basicInfo := systemInfo + ipInfo
if strings.Contains(ipInfo, "IPV4") && strings.Contains(ipInfo, "IPV6") && ipv4 != "" && ipv6 != "" {
uts.IPV4 = true
uts.IPV6 = true
executor.IPV4 = true
executor.IPV6 = true
if nt3CheckType == "" {
nt3CheckType = "ipv4"
}
} else if strings.Contains(ipInfo, "IPV4") && ipv4 != "" {
uts.IPV4 = true
uts.IPV6 = false
executor.IPV4 = true
executor.IPV6 = false
if nt3CheckType == "" {
nt3CheckType = "ipv4"
}
} else if strings.Contains(ipInfo, "IPV6") && ipv6 != "" {
uts.IPV6 = true
uts.IPV4 = false
executor.IPV6 = true
executor.IPV4 = false
if nt3CheckType == "" {
nt3CheckType = "ipv6"
}