Commit 0cf3fe3d authored by 向怀芳's avatar 向怀芳 🎱

1. IP白名单01

parent 64b55db3
......@@ -61,6 +61,8 @@ public class PasswordDecoderFilter extends AbstractGatewayFilterFactory {
public GatewayFilter apply(Object config) {
return (exchange, chain) -> {
ServerHttpRequest request = exchange.getRequest();
// IP白名单
log.error("RemoteAddress ===================> {}", request.getRemoteAddress());
// 不是登录请求,直接向下执行
if (!StrUtil.containsAnyIgnoreCase(request.getURI().getPath(), SecurityConstants.OAUTH_TOKEN_URL)) {
......
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