summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2000-10-23 21:44:43 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2000-10-23 21:44:43 +0000
commit1de608ec5c0f306ed82ce7f5356165b9716a2190 (patch)
tree58eed6c621e6352b52557332b83a652c24b1f8a7 /src
parent5a5c2adcd8231b4fea656b54b907502aede93726 (diff)
downloadtinyproxy-1de608ec5c0f306ed82ce7f5356165b9716a2190.tar.gz
tinyproxy-1de608ec5c0f306ed82ce7f5356165b9716a2190.zip
Added the initialization section for the DNS and Anonymous sub systems.
Diffstat (limited to 'src')
-rw-r--r--src/tinyproxy.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/tinyproxy.c b/src/tinyproxy.c
index e0d05da..748c6b8 100644
--- a/src/tinyproxy.c
+++ b/src/tinyproxy.c
@@ -1,4 +1,4 @@
-/* $Id: tinyproxy.c,v 1.5 2000-09-21 16:57:10 rjkaes Exp $
+/* $Id: tinyproxy.c,v 1.6 2000-10-23 21:44:43 rjkaes Exp $
*
* The initialise routine. Basically sets up all the initial stuff (logfile,
* listening socket, config options, etc.) and then sits there and loops
@@ -32,6 +32,7 @@
#include "anonymous.h"
#include "buffer.h"
+#include "dnscache.h"
#include "filter.h"
#include "log.h"
#include "reqs.h"
@@ -311,6 +312,19 @@ int main(int argc, char **argv)
exit(EX_OSERR);
}
+ /*
+ * Initialize the various subsystems...
+ */
+ log(LOG_INFO, "Starting the DNS caching subsystem.");
+ if (!new_dnscache())
+ exit(EX_SOFTWARE);
+ log(LOG_INFO, "Starting the Anonymous header subsystem.");
+ if (!new_anonymous())
+ exit(EX_SOFTWARE);
+
+ /*
+ * Start the main loop.
+ */
log(LOG_INFO, "Starting main loop. Accepting connections.");
thread_main_loop();