summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-15 12:20:52 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-15 12:20:52 +0000
commit9e38366b9562e1bc099c5392ba0b3cdfebeb9746 (patch)
tree22521413d4cc377d47468047fceece1057bef7ea /src/connection.cpp
parentf72964d7bff8b39185cdf05652bdc9f2ced0e8cf (diff)
Mesh tweaks (wasnt sending the ip in the + packet)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@605 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp4
1 files changed, 3 insertions, 1 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)
{