代码优化
This commit is contained in:
@@ -19,7 +19,7 @@ public class AddressUtils {
|
|||||||
public static final String UNKNOWN = "XX XX";
|
public static final String UNKNOWN = "XX XX";
|
||||||
|
|
||||||
public static String getRealAddressByIp(String ip) {
|
public static String getRealAddressByIp(String ip) {
|
||||||
if ("127.0.0.1".equals(ip)) {
|
if ("127.0.0.1".equals(ip) || "0:0:0:0:0:0:0:1".equals(ip)) {
|
||||||
return "内网IP";
|
return "内网IP";
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user