Commit 52e61085 by 黄超华

IP鉴权过滤器bug

1 parent 85b90edb
......@@ -49,7 +49,7 @@ public class IPCheckGlobalFilter implements GlobalFilter, Ordered {
ServerHttpRequest request = exchange.getRequest();
String requestIp = GatewayIpUtils.getIpAddr(request);
//判断请求方IP是否在白名单内
String ips = metadata.get(IP_AUTH_KEY_NAME).toString();
String ips = metadata.get(WHITE_IP_LIST_KEY_NAME).toString();
if(Arrays.asList(ips.split(",")).contains(requestIp)){
return chain.filter(exchange);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!