From 3caa55c1c70e34a13e37595d1b23295b09791415 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Thu, 21 Jan 2021 16:03:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF):=20?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=89=BE=E5=88=B0ip=E6=97=B6=E8=BF=94?= =?UTF-8?q?=E5=9B=9Eerr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qqwry.go | 1 + 1 file changed, 1 insertion(+) diff --git a/qqwry.go b/qqwry.go index 79a38b8..f1ac920 100644 --- a/qqwry.go +++ b/qqwry.go @@ -82,6 +82,7 @@ func QueryIP(queryIp string) (country string, area string, err error) { } } if offset <= 0 { + err = errors.New("ip not found") return } posM := offset + 4