--- a/mod_authnz_external.c 2013-10-15 14:27:36.611533387 +0200 +++ b/mod_authnz_external.c 2013-10-15 14:30:03.518533644 +0200 @@ -443,8 +443,8 @@ if (remote_host != NULL) child_env[i++]= apr_pstrcat(p, ENV_HOST"=", remote_host,NULL); - if (c->remote_ip) - child_env[i++]= apr_pstrcat(p, ENV_IP"=", c->remote_ip, NULL); + if (c->client_ip) + child_env[i++]= apr_pstrcat(p, ENV_IP"=", c->client_ip, NULL); if (r->uri) child_env[i++]= apr_pstrcat(p, ENV_URI"=", r->uri, NULL);