mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-22 06:40:43 +08:00
17 lines
304 B
Go
17 lines
304 B
Go
package qqwry
|
|
|
|
// Area returns IpArea according to ip
|
|
func Area(ip string) string {
|
|
defer func() {
|
|
_ = recover()
|
|
}()
|
|
if GetQQWry() == nil {
|
|
return ""
|
|
}
|
|
ipData := GetQQWry().SearchByIPv4(ip)
|
|
if ipData.Area == " CZ88.NET" {
|
|
return ipData.Country
|
|
}
|
|
return ipData.Country + " " + ipData.Area
|
|
}
|