summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dns.cpp')
-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);