From 85f39b11f7503f928c2d0dff04d2c8fbf8784367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Wed, 18 May 2022 16:50:36 +0800 Subject: [PATCH] update --- app_test.go | 6 ------ ip_test.go | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app_test.go b/app_test.go index 64813c0..9197542 100644 --- a/app_test.go +++ b/app_test.go @@ -7,12 +7,6 @@ import ( var app App -func TestOnlineDownload(t *testing.T) { - //t.Log(app.V4db.OnlineDownload()) // 在线下载ipv4数据库 - //t.Log(app.V6db.OnlineDownload()) // 在线下载ipv6数据库 - //t.Log(app.V4Region.OnlineDownload()) // 在线下载ip2region数据库 -} - func TestIp(t *testing.T) { app.InitIPData() t.Logf("%+v", net.ParseIP("61.241.55.180").To4()) diff --git a/ip_test.go b/ip_test.go index 2fce215..b822618 100644 --- a/ip_test.go +++ b/ip_test.go @@ -5,6 +5,6 @@ import "testing" func TestIpIp(t *testing.T) { t.Log("GetOutsideIp", GetOutsideIp()) t.Log("GetInsideIp", GetInsideIp()) - t.Log(Ips()) t.Log("GetMacAddr", GetMacAddr()) + t.Log(Ips()) }