summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/connection.cpp4
-rw-r--r--src/inspircd.cpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 48127086e..e2eaebfa7 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -128,11 +128,13 @@ bool ircd_connector::MakeOutboundConnection(char* host, int port)
{
WriteOpers("Failed to look up hostname for %s, using as an ip address",host);
this->SetHostAddress(host,port);
+ SetHostAndPort(host,port);
}
else
{
WriteOpers("Found hostname for %s",host);
this->SetHostAddress(hoste->h_addr,port);
+ SetHostAndPort(hoste->h_addr,port);
}
this->fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
@@ -192,7 +194,7 @@ bool connection::MeshCookie(char* targethost, int port, long cookie, char* serve
ircd_connector connector;
- WriteOpers("Establishing meshed link to %s:%d",targethost,port);
+ WriteOpers("Establishing meshed link to %s:%d",servername,port);
if (this->fd)
{
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 6eb01466a..ca587b58d 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -6629,10 +6629,11 @@ void handle_link_packet(char* udp_msg, char* udp_host, serverrec *serv)
if (!strcasecmp(me[j]->connectors[k].GetServerName().c_str(),udp_host))
{
me[j]->connectors[k].SetServerName(servername);
+ return;
}
}
}
- WriteOpers("\2WARNING!\2 %s sent us an authentication packet but we are not authenticating with this server right noe! Possible intrusion attempt!",udp_host);
+ WriteOpers("\2WARNING!\2 %s sent us an authentication packet but we are not authenticating with this server right now! Possible intrusion attempt!",udp_host);
return;
}