summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-06 00:07:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-06 00:07:19 +0000
commitba1d7c5dc271b752a1911a7a3c681cc46c8198a8 (patch)
tree0743ac822f8b293a1a7312dcd051c63e8f4f34ae
parente6841afbdb5ca3979527bf40ffc1d72b796032e1 (diff)
Fix the ipv6 end
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6510 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/dns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index d22c60c00..e0a93e37c 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -339,7 +339,7 @@ void DNS::Rehash()
if (strchr(ServerInstance->Config->DNSServer,':'))
{
this->socketfamily = AF_INET6;
- inet_pton(AF_INET6, &this->myserver6, ServerInstance->Config->DNSServer);
+ inet_pton(AF_INET6, ServerInstance->Config->DNSServer, &this->myserver6);
}
else
inet_aton(ServerInstance->Config->DNSServer, &this->myserver4);