diff options
| author | 2006-08-01 15:08:52 +0000 | |
|---|---|---|
| committer | 2006-08-01 15:08:52 +0000 | |
| commit | e505d47dc80f1eb302167c12618b170fcc0fd90c (patch) | |
| tree | 26b2934547da259a67d40f5379cb813f9294370f /src/inspsocket.cpp | |
| parent | Still working under ipv4 now (diff) | |
Fixes for inspsocket in ipv6 environment
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4615 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 054b8b910..20cde3a1a 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -99,7 +99,7 @@ InspSocket::InspSocket(const std::string &ahost, int aport, bool listening, unsi strlcpy(this->host,ahost.c_str(),MAXBUF); this->port = aport; - if (!insp_aton(host,&addy)) + if (insp_aton(host,&addy) < 0) { log(DEBUG,"Attempting to resolve %s",this->host); /* Its not an ip, spawn the resolver */ @@ -200,7 +200,7 @@ bool InspSocket::BindAddr() insp_sockaddr s; char resolved_addr[MAXBUF]; - if (!insp_aton(IP.c_str(),&n)) + if (insp_aton(IP.c_str(),&n) < 0) { /* If they gave a hostname, bind to the IP it resolves to */ log(DEBUG,"Resolving host %s",IP.c_str()); @@ -211,7 +211,7 @@ bool InspSocket::BindAddr() } } - if (insp_aton(IP.c_str(),&n)) + if (insp_aton(IP.c_str(),&n) == 0) { log(DEBUG,"Found an IP to bind to: %s",IP.c_str()); #ifdef IPV6 |
