Removed the "ViaHeader" directive and replaced it with the
"ViaProxyName" directive. The "Via" HTTP header is _required_ by the HTTP spec, so the code has been changed to always send the header. However, including the proxy's host name could be considered a security threat, so the "ViaProxyName" directive is used to set the token sent in the "Via" header. If the directive is not enabled the proxy's host name will be used.
This commit is contained in:
1 parent
0d3962f1f0
commit
4c9141aac6
5 files changed
+47
-44
No files matched your search
+5
-2
@@ -1,4 +1,4 @@
|
||||
/* $Id: tinyproxy.h,v 1.40 2003-06-02 21:55:14 rjkaes Exp $
|
||||
/* $Id: tinyproxy.h,v 1.41 2003-06-20 17:02:12 rjkaes Exp $
|
||||
*
|
||||
* See 'tinyproxy.c' for a detailed description.
|
||||
*
|
||||
@@ -61,7 +61,10 @@ struct config_s {
|
||||
unsigned int idletimeout;
|
||||
char* bind_address;
|
||||
|
||||
unsigned int via_http_header; /* boolean */
|
||||
/*
|
||||
* The configured name to use in the HTTP "Via" header field.
|
||||
*/
|
||||
char* via_proxy_name;
|
||||
|
||||
/*
|
||||
* Error page support. This is an array of pointers to structures
|
||||
|
||||
Reference in new issue
Block a user