summaryrefslogtreecommitdiff
path: root/src/modules/m_testcommand.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 16:00:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 16:00:55 +0000
commit9e0fd68e34beeb5b6234fdbe2b70351bf781debe (patch)
treee5545afbb8d658bf9e35df4ba89ba631cebbe54f /src/modules/m_testcommand.cpp
parentc5b44768744d758e8f66679bada353039a206b16 (diff)
Fixed resolver, forward lookup of ipv6 doesnt work right yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4674 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_testcommand.cpp')
-rw-r--r--src/modules/m_testcommand.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_testcommand.cpp b/src/modules/m_testcommand.cpp
index fb061a898..ebb09a19d 100644
--- a/src/modules/m_testcommand.cpp
+++ b/src/modules/m_testcommand.cpp
@@ -25,10 +25,10 @@ using namespace std;
/* $ModDesc: Povides a proof-of-concept test /WOOT command */
-class MyResolver : public Resolver
+class MyV6Resolver : public Resolver
{
public:
- MyResolver(const std::string &source, bool forward) : Resolver(source, forward) { }
+ MyV6Resolver(const std::string &source) : Resolver(source, DNS_QUERY_AAAA) { }
virtual void OnLookupComplete(const std::string &result)
{
@@ -58,7 +58,7 @@ class cmd_woot : public command_t
try
{
- MyResolver* r = new MyResolver("brainbox.ath.cx", true);
+ MyV6Resolver* r = new MyV6Resolver("shake.stacken.kth.se");
Srv->AddResolver(r);
}
catch (ModuleException& e)