X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=cgisimple.c;h=c19608987dd420f62bb6e923b9703ce7db87345a;hp=a47ef792647fb93eb6f362d5986256cc0d9d21fa;hb=07e46fdd4bce6c46b4f7e040795d8dda50207f16;hpb=67a4fa138becd0e2fe5adca3383e4efa03472c93 diff --git a/cgisimple.c b/cgisimple.c index a47ef792..c1960898 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.140 2016/05/08 10:46:18 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.142 2016/05/22 12:43:07 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -358,7 +358,7 @@ jb_err cgi_show_client_tags(struct client_state *csp, { return JB_ERR_MEMORY; } - + assert(csp->client_address != NULL); toggled_tag = lookup(parameters, "tag"); if (*toggled_tag != '\0') { @@ -396,7 +396,7 @@ jb_err cgi_show_client_tags(struct client_state *csp, int tag_state; privoxy_mutex_lock(&client_tags_mutex); - tag_state = client_has_requested_tag(csp->ip_addr_str, this_tag->name); + tag_state = client_has_requested_tag(csp->client_address, this_tag->name); privoxy_mutex_unlock(&client_tags_mutex); if (!err) err = string_append(&client_tag_status, ""); if (!err) err = string_append(&client_tag_status, this_tag->name); @@ -429,7 +429,7 @@ jb_err cgi_show_client_tags(struct client_state *csp, return JB_ERR_MEMORY; } - if (map(exports, "client-ip-addr", 1, csp->ip_addr_str, 1)) + if (map(exports, "client-ip-addr", 1, csp->client_address, 1)) { free_map(exports); return JB_ERR_MEMORY; @@ -1946,9 +1946,6 @@ static char *show_rcs(void) #endif /* def FEATURE_CGI_EDIT_ACTIONS */ SHOW_RCS(cgisimple_h_rcs) SHOW_RCS(cgisimple_rcs) -#ifdef __MINGW32__ - SHOW_RCS(cygwin_h_rcs) -#endif SHOW_RCS(deanimate_h_rcs) SHOW_RCS(deanimate_rcs) SHOW_RCS(encode_h_rcs)