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
5 * for a FreeBSD machine for testing and several suggestions.
8 +/* This patch won't go with IPv6. Forget it. Or, better, fix it. */
10 /***********************************************************************
11 *** Pick one that best suits your system.
12 ***********************************************************************/
14 * which we will apply the global policy for client connections.
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
21 /* Is it time for the period adjustment? */
23 (void) critical_acquire(critical);
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);
29 #ifdef THROTTLE_REMOTE_USER
30 remote_user = get_remote_user(remote_user_pool, r->connection->user);