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