You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by ch...@locus.apache.org on 2000/04/11 18:38:27 UTC
cvs commit: modperl/src/modules/perl Connection.xs
cholet 00/04/11 09:38:27
Modified: . Changes
src/modules/perl Connection.xs
Log:
$c->remote_ip($ip) now also sets conn->remote_addr to make
IP-based access control work correctly
Revision Changes Path
1.464 +4 -0 modperl/Changes
Index: Changes
===================================================================
RCS file: /home/cvs/modperl/Changes,v
retrieving revision 1.463
retrieving revision 1.464
diff -u -r1.463 -r1.464
--- Changes 2000/04/10 14:16:11 1.463
+++ Changes 2000/04/11 16:38:26 1.464
@@ -10,6 +10,10 @@
=item 1.22_01-dev
+$c->remote_ip($ip) now also sets conn->remote_addr to make
+IP-based access control work correctly
+[Eric Cholet <ch...@logilune.com>]
+
Apache::URI::port wasn't setting the port correctly, thanks
to Zeqing Xia for the spot [Eric Cholet <ch...@logilune.com>]
1.9 +1 -0 modperl/src/modules/perl/Connection.xs
Index: Connection.xs
===================================================================
RCS file: /home/cvs/modperl/src/modules/perl/Connection.xs,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Connection.xs 2000/03/24 19:00:24 1.8
+++ Connection.xs 2000/04/11 16:38:27 1.9
@@ -106,6 +106,7 @@
#else
conn->remote_ip = pstrdup(conn->pool, (char *)SvPV(ST(1),na));
#endif
+ conn->remote_addr.sin_addr.s_addr = inet_addr(conn->remote_ip);
}
OUTPUT:
Re: cvs commit: modperl/src/modules/perl Connection.xs
Posted by Ask Bjoern Hansen <as...@valueclick.com>.
On 11 Apr 2000 cholet@locus.apache.org wrote:
> Log:
> $c->remote_ip($ip) now also sets conn->remote_addr to make
> IP-based access control work correctly
ahfdkjah! Thanks.
That have driven me nuts. It never occured to me that it was a bug and not
me being clueless though. :) You're my hero of the day.
- ask
--
ask bjoern hansen - <http://www.netcetera.dk/~ask/>
more than 70M impressions per day, <http://valueclick.com>