update 幸运值计算bug修改

This commit is contained in:
yyb
2025-05-19 15:12:39 +08:00
parent e3e7993134
commit 88ea456424
22 changed files with 112 additions and 106 deletions

View File

@@ -48,7 +48,7 @@ public class IpUtils
ip = request.getRemoteAddr();
}
return "0:0:0:0:0:0:0:1".equals(ip) ? "10.168.2.150" : getMultistageReverseProxyIp(ip);
return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : getMultistageReverseProxyIp(ip);
}
/**
@@ -60,7 +60,7 @@ public class IpUtils
public static boolean internalIp(String ip)
{
byte[] addr = textToNumericFormatV4(ip);
return internalIp(addr) || "10.168.2.150".equals(ip);
return internalIp(addr) || "127.0.0.1".equals(ip);
}
/**
@@ -209,7 +209,7 @@ public class IpUtils
catch (UnknownHostException e)
{
}
return "10.168.2.150";
return "127.0.0.1";
}
/**