mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
update: IPv6 默认使用 LeoMoeAPI
This commit is contained in:
5
main.go
5
main.go
@@ -90,11 +90,6 @@ func main() {
|
||||
ip = util.DomainLookUp(domain, false)
|
||||
}
|
||||
|
||||
if ip.To4() == nil && strings.ToUpper(*dataOrigin) == "LEOMOEAPI" {
|
||||
// IPv6 不使用 LeoMoeAPI
|
||||
*dataOrigin = "ipinsight"
|
||||
}
|
||||
|
||||
if strings.ToUpper(*dataOrigin) == "LEOMOEAPI" {
|
||||
w := wshandle.New()
|
||||
w.Interrupt = make(chan os.Signal, 1)
|
||||
|
||||
Reference in New Issue
Block a user