From 0cf3fe3df59ab2752aef0fed41a299b6dd5f0ca2 Mon Sep 17 00:00:00 2001 From: fshenye <512914587@qq.com> Date: Thu, 20 Oct 2022 15:18:50 +0800 Subject: [PATCH] =?UTF-8?q?1.=20IP=E7=99=BD=E5=90=8D=E5=8D=9501?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sict/cloud/common/gateway/filter/PasswordDecoderFilter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloud-common/cloud-common-gateway/src/main/java/cn/sh/stc/sict/cloud/common/gateway/filter/PasswordDecoderFilter.java b/cloud-common/cloud-common-gateway/src/main/java/cn/sh/stc/sict/cloud/common/gateway/filter/PasswordDecoderFilter.java index 45cda3d..fdef4ca 100644 --- a/cloud-common/cloud-common-gateway/src/main/java/cn/sh/stc/sict/cloud/common/gateway/filter/PasswordDecoderFilter.java +++ b/cloud-common/cloud-common-gateway/src/main/java/cn/sh/stc/sict/cloud/common/gateway/filter/PasswordDecoderFilter.java @@ -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)) { -- 2.22.0