summaryrefslogtreecommitdiffhomepage
path: root/src/tinyproxy.h
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2003-06-20 17:02:13 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2003-06-20 17:02:13 +0000
commit4c9141aac6b60eab1a0113d45ac059a78097b0f7 (patch)
treef94631c1b13568855c0c9f7575a32fda5798ae4f /src/tinyproxy.h
parent0d3962f1f069845c2f396ca2450d9529f27d556b (diff)
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.
Diffstat (limited to 'src/tinyproxy.h')
-rw-r--r--src/tinyproxy.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tinyproxy.h b/src/tinyproxy.h
index 1c21762..d014748 100644
--- a/src/tinyproxy.h
+++ b/src/tinyproxy.h
@@ -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