diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-02 00:26:51 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-02 00:26:51 +0000 |
commit | ec0dd17d5ba1a0b3b6f658ab352faa2ff58c866c (patch) | |
tree | cedf34b6097e80cdea3406ed9d6622f329340ce0 /src | |
parent | 8f31ffb7d0216f90d5fc51bb26ae9e238c34385b (diff) |
Bloody ip addresses.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2097 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/dns.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index 04aa93b6c..86bf2b7f2 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -717,12 +717,7 @@ std::string DNS::GetResultIP() } if (result) { - unsigned long oct1 = (unsigned)result[0]; - unsigned long oct2 = (unsigned)result[1]; - unsigned long oct3 = (unsigned)result[2]; - unsigned long oct4 = (unsigned)result[3]; - sprintf(r,"%lu.%lu.%lu.%lu",oct1,oct2,oct3,oct4); - return r; + return dns_ntoa4_s((in_addr*)&result,r); } else { |