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

调整本地白名单逻辑为:非生产环境开启

parent 96431d8d
...@@ -31,7 +31,7 @@ public class IPUtil { ...@@ -31,7 +31,7 @@ public class IPUtil {
String[] ips = {"172.16.", "172.20.", "172.30.", "192.168.3.", "192.168.4."}; String[] ips = {"172.16.", "172.20.", "172.30.", "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("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