From 04632bd381796dd90742bbc6ccd38905d4de25be Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 22 Oct 2012 17:02:01 -0400 Subject: Cleanup of last few commits/warning fix --- include/config.h | 3 ++- include/dns.h | 2 +- include/modules.h | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/config.h b/include/config.h index 947daa3e5..5851247e8 100644 --- a/include/config.h +++ b/include/config.h @@ -500,7 +500,8 @@ class CoreExport ServerConfig Anope::string NameServer; /* Time before a DNS query is considered dead */ time_t DNSTimeout; - /* The port DNS queries come in on */ + /* The IP/port DNS queries come in on */ + Anope::string DNSIP; int DNSPort; /* Prefix of guest nicks when a user gets forced off of a nick */ diff --git a/include/dns.h b/include/dns.h index 062fed26f..bb57945f3 100644 --- a/include/dns.h +++ b/include/dns.h @@ -162,7 +162,7 @@ class CoreExport DNSManager : public Timer, public Socket sockaddrs addrs; std::map requests; - DNSManager(const Anope::string &nameserver, int port); + DNSManager(const Anope::string &nameserver, const Anope::string &ip, int port); ~DNSManager(); diff --git a/include/modules.h b/include/modules.h index 3827e9234..cdaf53fc0 100644 --- a/include/modules.h +++ b/include/modules.h @@ -919,8 +919,9 @@ class CoreExport Module : public Extensible /** Called when a DNS request (question) is recieved. * @param req The dns request + * @param reply The reply that will be sent */ - virtual void OnDnsRequest(DNSPacket &req) { } + virtual void OnDnsRequest(DNSPacket &req, DNSPacket *reply) { } /** Called when a channels modes are being checked to see if they are allowed, * mostly to ensure mlock/+r are set. -- cgit