X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=project.h;h=9214137762a989d615940963ed9db04cd2d5db51;hp=a53aa879ac77def1994db89ca3e0f1240b7ea237;hb=96db4df3378c7105293a112b7a73b1de55fa5cf3;hpb=a89937766b375bf2da021a0cbe6ba4e7787dacb8 diff --git a/project.h b/project.h index a53aa879..92141377 100644 --- a/project.h +++ b/project.h @@ -1,7 +1,7 @@ #ifndef PROJECT_H_INCLUDED #define PROJECT_H_INCLUDED /** Version string. */ -#define PROJECT_H_VERSION "$Id: project.h,v 1.213 2016/03/17 10:40:53 fabiankeil Exp $" +#define PROJECT_H_VERSION "$Id: project.h,v 1.215 2016/05/22 12:43:07 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/project.h,v $ @@ -927,6 +927,10 @@ struct client_state unsigned long ip_addr_long; #endif /* def HAVE_RFC2553 */ + /** The host name and port (as a string of the form ':') + of the server socket to which the client connected. */ + char *listen_addr_str; + /** The URL that was requested */ struct http_request http[1]; @@ -953,6 +957,12 @@ struct client_state #ifdef FEATURE_CLIENT_TAGS /** List of all tags that apply to this client (assigned based on address) */ struct list client_tags[1]; + /** The address of the client the request (presumably) came from. + * Either the address returned by accept(), or the address provided + * with the X-Forwarded-For header, provided Privoxy has been configured + * to use it. + */ + char *client_address; #endif /** MIME-Type key, see CT_* above */ @@ -1347,6 +1357,7 @@ struct configuration_spec /* Maximum number of seconds a temporarily enabled tag stays enabled. */ unsigned int client_tag_lifetime; #endif /* def FEATURE_CLIENT_TAGS */ + int trust_x_forwarded_for; #ifdef FEATURE_ACL