|
@@ -24,7 +24,7 @@ public class AuthFilter extends ZuulFilter {
|
|
|
RequestContext requestContext = RequestContext.getCurrentContext();
|
|
|
HttpServletRequest request = requestContext.getRequest();
|
|
|
String remoteIp = getRealIp(request);
|
|
|
- logger.warn("remoteIp:-------------" ,remoteIp);
|
|
|
+ logger.warn("remoteIp:-------------{}" ,remoteIp);
|
|
|
requestContext.getZuulRequestHeaders().put("HTTP_X_FORWARDED_FOR", remoteIp);
|
|
|
return null;
|
|
|
}
|