Apache1.3 modssl ipv6
[email protected] (Dirk Meyer) Sun, 20 Nov 2005 11:24:41 +0100
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Organization | privat |
| Message-ID | <[email protected]> |
Hi, this patch seem to make mod_ruby work with IPV6. Apache1.3 with modssl and IVP6 running. Apache2.x not tested. kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany - [[email protected]],[[email protected]],[[email protected]] --- connection.c.orig Fri Jul 16 11:16:29 2004 +++ connection.c Fri Sep 9 06:38:14 2005 @@ -100,8 +100,12 @@ #ifdef APACHE2 return INT2NUM(conn->local_addr->port); #else +#ifdef APACHE6 + return INT2NUM(ntohs(((struct sockaddr_in *)&conn->local_addr)->sin_port)); +#else return INT2NUM(ntohs(conn->local_addr.sin_port)); #endif +#endif } static VALUE connection_remote_port(VALUE self) @@ -112,7 +116,11 @@ #ifdef APACHE2 return INT2NUM(conn->remote_addr->port); #else +#ifdef APACHE6 + return INT2NUM(ntohs(((struct sockaddr_in *)&conn->remote_addr)->sin_port)); +#else return INT2NUM(ntohs(conn->remote_addr.sin_port)); +#endif #endif }