From 1de608ec5c0f306ed82ce7f5356165b9716a2190 Mon Sep 17 00:00:00 2001
From: Robert James Kaes <rjkaes@users.sourceforge.net>
Date: Mon, 23 Oct 2000 21:44:43 +0000
Subject: Added the initialization section for the DNS and Anonymous sub
 systems.

---
 src/tinyproxy.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

(limited to 'src')

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();
 
-- 
cgit v1.2.3