/** * A predicate which checks the remote address of the request. * By default the RemoteAddr Route Predicate Factory uses the remote address from the incoming request. * This may not match the actual client IP address if Spring Cloud Gateway sits behind a proxy layer. * Use {@link PredicateSpec#remoteAddr(RemoteAddressResolver, String...)} to customize the resolver. * You can customize the way that the remote address is resolved by setting a custom RemoteAddressResolver. * @param addrs the remote address to verify. Should use CIDR-notation (IPv4 or IPv6) strings. * @return a {@link BooleanSpec} to be used to add logical operators */ public BooleanSpec remoteAddr(String... addrs) { return remoteAddr(null, addrs); }