]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_dns.cpp
Move OnStats from the core to a cross-module event.
[user/henk/code/inspircd.git] / src / coremods / core_dns.cpp
index 1040bb036736b57794529b2256f9b6e875f7d403..0a835a67adf572e32de6fb1db70949d70018e4a1 100644 (file)
@@ -502,7 +502,7 @@ class MyManager : public Manager, public Timer, public EventHandler
                // Update name in the original request so question checking works for PTR queries
                req->question.name = p.question.name;
 
-               if (SocketEngine::SendTo(this, buffer, len, 0, &this->myserver.sa, this->myserver.sa_size()) != len)
+               if (SocketEngine::SendTo(this, buffer, len, 0, this->myserver) != len)
                        throw Exception("DNS: Unable to send query");
 
                // Add timer for timeout