X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=project.h;h=32a63d52e19cf11af5178e2373e023b2feb2fb29;hp=a53aa879ac77def1994db89ca3e0f1240b7ea237;hb=97dcdede1c96c857ea36b5f5a9873c302d021a7d;hpb=9424a2760917ffde1cdaf6217309b9b01f31d4a9 diff --git a/project.h b/project.h index a53aa879..32a63d52 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.214 2016/03/30 11:13:25 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/project.h,v $ @@ -953,6 +953,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 +1353,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