summaryrefslogtreecommitdiff
path: root/src/tinyproxy.h
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2003-05-29 19:44:00 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2003-05-29 19:44:00 +0000
commit4a377a712d5a17d1cd2c5e46f8c0873824a2448f (patch)
treed2af5dc84bb057f96fe7df741b9232d2ae620056 /src/tinyproxy.h
parent2e9f27769d94974c875207e92fd219e6cd29fda8 (diff)
downloadtinyproxy-4a377a712d5a17d1cd2c5e46f8c0873824a2448f.tar.gz
tinyproxy-4a377a712d5a17d1cd2c5e46f8c0873824a2448f.zip
Improved the upstream proxy support by making the upstream proxy
server configurable based on the destination host. [Code written by Peter da Silva]
Diffstat (limited to 'src/tinyproxy.h')
-rw-r--r--src/tinyproxy.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/tinyproxy.h b/src/tinyproxy.h
index e5c9e1c..0e8ee59 100644
--- a/src/tinyproxy.h
+++ b/src/tinyproxy.h
@@ -1,4 +1,4 @@
-/* $Id: tinyproxy.h,v 1.38 2003-03-13 21:32:33 rjkaes Exp $
+/* $Id: tinyproxy.h,v 1.39 2003-05-29 19:43:57 rjkaes Exp $
*
* See 'tinyproxy.c' for a detailed description.
*
@@ -25,6 +25,15 @@
#define MAXBUFFSIZE ((size_t)(1024 * 96)) /* Max size of buffer */
#define MAX_IDLE_TIME (60 * 10) /* 10 minutes of no activity */
+#ifdef UPSTREAM_SUPPORT
+struct upstream {
+ struct upstream *next;
+ char *domain; /* optional */
+ char *host;
+ int port;
+};
+#endif
+
struct config_s {
char *logf_name;
char *config_file;
@@ -45,8 +54,7 @@ struct config_s {
char *my_domain;
#endif
#ifdef UPSTREAM_SUPPORT
- char *upstream_name;
- int upstream_port;
+ struct upstream *upstream_list;
#endif /* UPSTREAM_SUPPORT */
char *pidpath;
unsigned int idletimeout;