Skip to content

Commit f6f4016

Browse files
committed
fix(ratelimiter): 修复 ServletUtils API 升级
1 parent ef6cf3a commit f6f4016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

continew-starter-ratelimiter/src/main/java/top/continew/starter/ratelimiter/aop/RateLimiterAspect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private String getCacheKey(JoinPoint joinPoint, RateLimiter rateLimiter) {
168168
}
169169
// 获取后缀
170170
String suffix = switch (rateLimiter.type()) {
171-
case IP -> ServletUtils.getRequestIp();
171+
case IP -> ServletUtils.getClientIP(ServletUtils.getRequest());
172172
case CLUSTER -> redissonClient.getId();
173173
default -> StringConstants.EMPTY;
174174
};

0 commit comments

Comments
 (0)