Re: [PR] TAP5-2832: LocalhostOnly detect IPv6 correctly [tapestry-5]

thiagohp (via GitHub) <[email protected]> Sat, 18 Jul 2026 19:15:45 -0000
Newsgroups gmane.comp.jakarta.tapestry.devel
Message-ID <PR_kwDOAENlv87rdVTP-1a66ec84-fd38-4170-b345-90bd226c63e5@gitbox.apache.org>
thiagohp commented on code in PR #64:
URL: https://github.com/apache/tapestry-5/pull/64#discussion_r3609022013


##########
tapestry-http/src/main/java/org/apache/tapestry5/http/services/Request.java:
##########
@@ -209,6 +209,15 @@ public interface Request
      */
     String getRemoteHost();
 
+    /**
+     * Returns the IP address of the client or last proxy that sent the request,
+     * always as a numeric address string (never a hostname).
+     *
+     * @return a <code>String</code> containing the IP address of the client that sent the request
+     * @since 5.10
+     */
+    String getRemoteAddr();

Review Comment:
   Yes, I'd like to have the new method to be default.



-- 
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]