内网不查询地址

This commit is contained in:
RuoYi
2018-10-16 20:34:57 +08:00
parent ef55bd24e4
commit bc7ac0dd12
7 changed files with 129 additions and 9 deletions

View File

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