thanhbv200585 commented on code in PR #1824:
URL: https://github.com/apache/james-project/pull/1824#discussion_r1433947530


##########
server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/HAProxyMessageHandler.java:
##########
@@ -60,6 +69,7 @@ public void channelRead(ChannelHandlerContext ctx, Object 
msg) throws Exception
                 // Refresh MDC info to account for proxying
                 MDCBuilder boundMDC = IMAPMDCContext.boundMDC(ctx);
 
+                connectionChecks.forEach(connectionCheck -> 
Mono.from(connectionCheck.validate((InetSocketAddress) 
ctx.channel().remoteAddress())).block());

Review Comment:
   Yep, you're right, `haproxyMsg.sourceAddress()` is the client IP 
   I will adapt the code later. Thank for your comments!!
   
![image](https://github.com/apache/james-project/assets/87489927/d0922550-5d80-4575-b201-221158235171)
   
   
![image](https://github.com/apache/james-project/assets/87489927/444c8ed0-c678-4f1c-8f13-a191c75c4f3c)
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to