From 9c2e9b5052953d3b446a3afba562be0e259dca35 Mon Sep 17 00:00:00 2001 From: serassio <> Date: Sun, 3 Apr 2005 23:11:21 +0000 Subject: [PATCH] Don't call neighbors_init() when icp_port is set to 0 --- src/main.cc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main.cc b/src/main.cc index d8b009161d..0ab3a9e30b 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.405 2005/03/18 15:47:42 hno Exp $ + * $Id: main.cc,v 1.406 2005/04/03 17:11:21 serassio Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -561,11 +561,18 @@ mainReconfigure(void) #endif serverConnectionsOpen(); - neighbors_init(); + + if (theOutIcpConnection >= 0) + neighbors_init(); + storeDirOpenSwapLogs(); + mimeInit(Config.mimeTablePathname); + writePidFile(); /* write PID file */ + debug(1, 1) ("Ready to serve requests.\n"); + reconfiguring = 0; } @@ -791,7 +798,8 @@ mainInitialize(void) serverConnectionsOpen(); - neighbors_init(); + if (theOutIcpConnection >= 0) + neighbors_init(); if (Config.chroot_dir) no_suid(); -- 2.47.3