]> git.pld-linux.org Git - packages/apache1-mod_throttle.git/blob - apache1-mod_throttle-PLD-v6stuff.patch
ad6358c3dc7f5cd12a9bf306f4b6df5827d67b28
[packages/apache1-mod_throttle.git] / apache1-mod_throttle-PLD-v6stuff.patch
1 diff -u mod_throttle-3.1.2/mod_throttle.c mod_throttle-3.1.2.new/mod_throttle.c
2 --- mod_throttle-3.1.2/mod_throttle.c   Sun Dec  3 11:15:10 2000
3 +++ mod_throttle-3.1.2.new/mod_throttle.c       Thu Aug 29 21:04:31 2002
4 @@ -41,6 +41,8 @@
5   * for a FreeBSD machine for testing and several suggestions.
6   */
7  
8 +/* This patch won't go with IPv6.  Forget it.  Or, better, fix it. */
9 +
10  /***********************************************************************
11   *** Pick one that best suits your system.
12   ***********************************************************************/
13 @@ -2811,7 +2813,7 @@
14          * which we will apply the global policy for client connections.
15          */
16         client_ip_config.track = (t_throttle *) get_client_ip(
17 -               client_ip_pool, r->connection->remote_addr.sin_addr
18 +               client_ip_pool, ((struct sockaddr_in *)&r->connection->remote_addr)->sin_addr
19         );
20  
21         /* Is it time for the period adjustment? */
22 @@ -3185,7 +3187,7 @@
23         (void) critical_acquire(critical);
24  
25  #ifdef THROTTLE_CLIENT_IP
26 -       client_ip = get_client_ip(client_ip_pool, r->connection->remote_addr.sin_addr);
27 +       client_ip = get_client_ip(client_ip_pool, ((struct sockaddr_in *)&r->connection->remote_addr)->sin_addr);
28  #endif
29  #ifdef THROTTLE_REMOTE_USER
30         remote_user = get_remote_user(remote_user_pool, r->connection->user);
This page took 0.084639 seconds and 3 git commands to generate.