summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-18 11:43:42 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-18 11:43:42 +0000
commit2340d03cdf75e85bd2f76c92a1995474af488325 (patch)
tree510b72abe61a860ee382a523082d5e8e4941628b
parent37b7be5bfa32039200f760c03ec94dd995a25f2a (diff)
Attempted dns fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@641 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/InspIRCd.layout26
-rw-r--r--src/connection.cpp11
2 files changed, 19 insertions, 18 deletions
diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout
index bcc24c1b7..f7e388107 100644
--- a/src/InspIRCd.layout
+++ b/src/InspIRCd.layout
@@ -1,5 +1,5 @@
[Editors]
-Focused=1
+Focused=24
Order=1,2,4,6,3,7,25,5,24,-1
[Editor_0]
@@ -12,8 +12,8 @@ LeftChar=1
[Editor_1]
Open=1
-Top=1
-CursorCol=16
+Top=0
+CursorCol=2
CursorRow=6673
TopLine=6641
LeftChar=1
@@ -63,7 +63,7 @@ Open=1
Top=0
CursorCol=20
CursorRow=15
-TopLine=6
+TopLine=1
LeftChar=1
[Editor_8]
@@ -99,7 +99,7 @@ TopLine=1
LeftChar=1
[Editor_12]
-Open=1
+Open=0
Top=0
CursorCol=12
CursorRow=104
@@ -109,7 +109,7 @@ LeftChar=1
[Editor_13]
Open=1
Top=0
-CursorCol=89
+CursorCol=51
CursorRow=125
TopLine=73
LeftChar=1
@@ -123,11 +123,11 @@ TopLine=1
LeftChar=1
[Editor_15]
-Open=0
+Open=1
Top=0
CursorCol=1
CursorRow=81
-TopLine=50
+TopLine=41
LeftChar=1
[Editor_16]
@@ -139,7 +139,7 @@ TopLine=1
LeftChar=1
[Editor_17]
-Open=1
+Open=0
Top=0
CursorCol=20
CursorRow=128
@@ -196,10 +196,10 @@ LeftChar=1
[Editor_24]
Open=1
-Top=0
-CursorCol=1
-CursorRow=368
-TopLine=333
+Top=1
+CursorCol=96
+CursorRow=132
+TopLine=102
LeftChar=1
[Editor_25]
Open=1
diff --git a/src/connection.cpp b/src/connection.cpp
index 28f3ef675..c4f0a3f72 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -119,24 +119,25 @@ void ircd_connector::SetServerPort(int p)
bool ircd_connector::MakeOutboundConnection(char* host, int port)
{
+ log(DEBUG,"MakeOutboundConnection: Original param: %s",host);
hostent* hoste = gethostbyname(host);
if (!hoste)
{
- WriteOpers("Failed to look up hostname for %s, using as an ip address",host);
+ log(DEBUG,"MakeOutboundConnection: gethostbyname was NULL, setting %s",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);
+ log(DEBUG,"MakeOutboundConnection: gethostbyname was valid, setting %s",(char *)hoste->h_addr);
+ this->SetHostAddress((char *)hoste->h_addr,port);
+ SetHostAndPort((char *)hoste->h_addr,port);
}
this->fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (this->fd >= 0)
{
- if(connect(this->fd, (sockaddr*)&addr,sizeof(addr)))
+ if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)))
{
WriteOpers("connect() failed for %s",host);
return false;