X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=project.h;h=8bf30209ef7cd4800c888bb0a7558865dd9451f7;hb=55e8411449191d8436af3a048ae2fe541ac36d94;hp=6e2c838ec70434e61983e84c32329f4d00d5ae4b;hpb=8ef1cce0e3dfe6b68730d19d68cbb628219ebf39;p=privoxy.git diff --git a/project.h b/project.h index 6e2c838e..8bf30209 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.116 2008/05/20 16:05:02 fabiankeil Exp $" +#define PROJECT_H_VERSION "$Id: project.h,v 1.117 2008/08/30 12:03:07 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/project.h,v $ @@ -37,6 +37,9 @@ * * Revisions : * $Log: project.h,v $ + * Revision 1.117 2008/08/30 12:03:07 fabiankeil + * Remove FEATURE_COOKIE_JAR. + * * Revision 1.116 2008/05/20 16:05:02 fabiankeil * Move parsers structure definition from project.h to parsers.h. * @@ -1105,6 +1108,8 @@ struct iob #define ACTION_OVERWRITE_LAST_MODIFIED 0x02000000UL /** Action bitmap: Replace or block Accept-Language header */ #define ACTION_HIDE_ACCEPT_LANGUAGE 0x04000000UL +/** Action bitmap: Remove or add "X-Forwarded-For" header. */ +#define ACTION_CHANGE_X_FORWARDED_FOR 0x08000000UL /** Action string index: How to deanimate GIFs */ @@ -1141,8 +1146,10 @@ struct iob #define ACTION_STRING_FORWARD_OVERRIDE 15 /** Action string index: Reason for the block. */ #define ACTION_STRING_BLOCK 16 +/** Action string index: what to do with the "X-Forwarded-For" header. */ +#define ACTION_STRING_CHANGE_X_FORWARDED_FOR 17 /** Number of string actions. */ -#define ACTION_STRING_COUNT 17 +#define ACTION_STRING_COUNT 18 /* To make the ugly hack in sed easier to understand */ @@ -1375,6 +1382,13 @@ struct client_state /** MIME-Type key, see CT_* above */ unsigned int content_type; + /** The "X-Forwarded-For:" header sent by the client */ + /* + * XXX: this is a hack that causes problems if + * there's more than one X-Forwarded-For header. + */ + char *x_forwarded_for; + /** Actions files associated with this client */ struct file_list *actions_list[MAX_AF_FILES];