update: IPv6 默认使用 LeoMoeAPI

This commit is contained in:
sjlleo
2022-07-02 02:35:16 +02:00
parent 9cec64b207
commit bf54b61eb8

View File

@@ -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)