You've already forked RuoYi-fast
mirror of
https://github.com/yangzongzhuan/RuoYi-fast.git
synced 2025-12-18 14:13:58 +08:00
内网不查询地址
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user