From 5b91fac8609eb13ef6c746a924d508f8bb217a83 Mon Sep 17 00:00:00 2001 From: sjlleo Date: Tue, 20 Sep 2022 04:40:59 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=20API=20=E4=B8=8D=E6=98=BE=E7=A4=BA=20ISP=20=E6=88=96?= =?UTF-8?q?=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ipgeo/ipapicom.go | 2 +- ipgeo/ipinfo.go | 2 +- ipgeo/ipsb.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ipgeo/ipapicom.go b/ipgeo/ipapicom.go index fd4cbc2..310d7a8 100644 --- a/ipgeo/ipapicom.go +++ b/ipgeo/ipapicom.go @@ -38,6 +38,6 @@ func IPApiCom(ip string) (*IPGeoData, error) { Country: res.Get("country").String(), City: res.Get("city").String(), Prov: res.Get("regionName").String(), - Isp: res.Get("isp").String(), + Owner: res.Get("isp").String(), }, nil } diff --git a/ipgeo/ipinfo.go b/ipgeo/ipinfo.go index 5da1429..4433248 100644 --- a/ipgeo/ipinfo.go +++ b/ipgeo/ipinfo.go @@ -31,6 +31,6 @@ func IPInfo(ip string) (*IPGeoData, error) { Country: country, City: res.Get("city").String(), Prov: res.Get("region").String(), - Isp: res.Get("asn").Get("domain").String(), + Owner: res.Get("asn").Get("domain").String(), }, nil } diff --git a/ipgeo/ipsb.go b/ipgeo/ipsb.go index 873dea4..cf79470 100644 --- a/ipgeo/ipsb.go +++ b/ipgeo/ipsb.go @@ -37,6 +37,6 @@ func IPSB(ip string) (*IPGeoData, error) { Country: res.Get("country").String(), City: res.Get("city").String(), Prov: res.Get("region").String(), - Isp: res.Get("isp").String(), + Owner: res.Get("isp").String(), }, nil }