From 5540919fca20cc9a1217c28d433e1c152e863bc1 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Wed, 28 May 2025 16:24:10 -0400 Subject: [PATCH] polishing --- .../cloud/gateway/config/GatewayAutoConfiguration.java | 1 - .../cloud/gateway/filter/headers/TrustedProxies.java | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java index 54ad4c1e..a8d30869 100644 --- a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java +++ b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java @@ -177,7 +177,6 @@ import org.springframework.security.oauth2.client.OAuth2AuthorizedClient; import org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientManager; import org.springframework.security.web.server.SecurityWebFilterChain; import org.springframework.util.ClassUtils; -import org.springframework.util.StringUtils; import org.springframework.validation.Validator; import org.springframework.web.reactive.DispatcherHandler; import org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient; diff --git a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/headers/TrustedProxies.java b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/headers/TrustedProxies.java index da80a99a..732454e8 100644 --- a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/headers/TrustedProxies.java +++ b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/headers/TrustedProxies.java @@ -39,6 +39,9 @@ import org.springframework.util.StringUtils; @FunctionalInterface public interface TrustedProxies { + /** + * Property name. + */ String PROPERTY = GatewayProperties.PREFIX + ".trusted-proxies"; boolean isTrusted(String host);