内网不查询地址

This commit is contained in:
RuoYi
2018-10-16 20:21:59 +08:00
parent 7b0e1c46c5
commit 6ee8053a9b
5 changed files with 122 additions and 37 deletions

View File

@ -20,7 +20,13 @@ public class AddressUtils
public static String getRealAddressByIP(String ip)
{
String address = "address disabled";
String address = "XX XX";
// 内网不查询
if (IpUtils.internalIp(ip))
{
return "内网IP";
}
if (Global.isAddressEnabled())
{
String rspStr = HttpUtils.sendPost(IP_URL, "ip=" + ip);