diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-16 13:12:32 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-16 13:12:32 +0000 |
commit | 0dbcc361f24e1106cf233afd0f46c99f8f2d4d0c (patch) | |
tree | 96ae3d8e85eca54b09064245230a5aaceaf0c12c /src/inspircd.cpp | |
parent | fcc46b271ae45263cb2f7879b9f580655855363c (diff) |
Added ability to update routing table on the fly if a connection is lost
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@612 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 3cc50e9b0..f178a9f0b 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -6492,6 +6492,7 @@ void NetSendMyRoutingTable() void handle_dollar(char token,char* params,serverrec* source,serverrec* reply, char* udp_host) { + log(DEBUG,"Storing routing table..."); char* sourceserver = strtok(params," "); char* server = strtok(NULL," "); for (int i = 0; i < 32; i++) @@ -6502,6 +6503,8 @@ void handle_dollar(char token,char* params,serverrec* source,serverrec* reply, c { if (!strcasecmp(me[i]->connectors[j].GetServerName().c_str(),sourceserver)) { + me[i]->connectors[j].routes.clear(); + log(DEBUG,"Found entry for source server."); while (server) { // store each route @@ -7123,10 +7126,6 @@ int InspIRCd(void) { strncpy(resolved,remotehost,MAXBUF); } - log(DEBUG," "); - log(DEBUG," "); - log(DEBUG,"Resolved: '%s'",resolved); - log(DEBUG," "); // add to this connections ircd_connector vector me[x]->AddIncoming(incomingSockfd,resolved,ntohs(client.sin_port)); } |