Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 38884
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: MARKSTOS [...] cpan.org
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: wish: remote_ip()
Download (untitled) / with headers
text/plain 189b
The remote_host() method is useful, but it would be nice to also have remote_ip(), which always returns the IP address. This would be symmetric with Apache2::Connection, which offers this.
Download (untitled) / with headers
text/plain 276b
On Sun Aug 31 11:01:01 2008, MARKSTOS wrote: Show quoted text
> The remote_host() method is useful, but it would be nice to also have > remote_ip(), which always returns the IP address.
I could be wrong, but I think that the already-existing remote_addr function already does what you want.
Download (untitled) / with headers
text/plain 280b
On Sat Aug 15 15:21:51 2009, YANICK wrote: Show quoted text
> I could be wrong, but I think that the already-existing remote_addr > function already does what you want.
Ah, but the function seems to be undocumented. A patch for that is on Github at http://github.com/yanick/CGI.pm/tree/rt-38884
Thanks, your patch has now been applied in my git repo.
Subject: Thanks, released
Download (untitled) / with headers
text/plain 160b
The patch for this ticket has now been released in CGI.pm 3.47, and this ticket is considered resolved. Thanks again for you help to improve CGI.pm! Mark


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.