fix: 内网IP英文显示
This commit is contained in:
1 parent
224efff227
commit
f691af14aa
1 file changed
+3
@@ -71,6 +71,9 @@ func RealAddressByIp(ip string) string {
|
|||||||
province := parts[2]
|
province := parts[2]
|
||||||
city := parts[3]
|
city := parts[3]
|
||||||
if province == "0" && city != "0" {
|
if province == "0" && city != "0" {
|
||||||
|
if city == "内网IP" {
|
||||||
|
return "Intranet IP" // 内网IP
|
||||||
|
}
|
||||||
return city
|
return city
|
||||||
}
|
}
|
||||||
return province + " " + city
|
return province + " " + city
|
||||||
|
|||||||
Reference in new issue
Block a user