Commit 4e5a00a4 authored by 技术部-任文超's avatar 技术部-任文超

扩展白名单:生产和测试环境各增加一个172的2级网段

parent a2ce79e9
...@@ -32,11 +32,12 @@ public class IPUtil { ...@@ -32,11 +32,12 @@ public class IPUtil {
private static final String LOCAL_ADDRESS = "127.0.0.1"; private static final String LOCAL_ADDRESS = "127.0.0.1";
static { static {
String[] ips = {"172.16.", "172.18.", "172.20.", "172.30.", "172.41.", "192.168.3.", "192.168.4."}; String[] ips = {"172.16.", "172.18.", "172.20.", "172.21.", "172.30.", "172.41.", "192.168.3.", "192.168.4."};
WHITE_ADDRESS.addAll(Arrays.asList(ips)); WHITE_ADDRESS.addAll(Arrays.asList(ips));
//系统环境 //系统环境
if (!TechEnvironment.isPro()) { if (!TechEnvironment.isPro()) {
WHITE_ADDRESS.add("192.168."); WHITE_ADDRESS.add("192.168.");
WHITE_ADDRESS.add("172.17.");
WHITE_ADDRESS.add("10."); WHITE_ADDRESS.add("10.");
WHITE_ADDRESS.add(LOCAL_ADDRESS); WHITE_ADDRESS.add(LOCAL_ADDRESS);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment