summaryrefslogtreecommitdiff
path: root/src/anytun.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-03 17:20:08 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-03 17:20:08 +0000
commit9985958899d1fc24689a24758e0cce99adcb7678 (patch)
tree1ea112d4a79b51b75d6f6955d533860c41e41062 /src/anytun.cpp
parentmake distclean always works now (diff)
initial checkin of new resolver
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r--src/anytun.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp
index 4086c93..bd21eb3 100644
--- a/src/anytun.cpp
+++ b/src/anytun.cpp
@@ -39,6 +39,7 @@
#include "datatypes.h"
#include "log.h"
+#include "resolver.h"
#include "buffer.h"
#include "plainPacket.h"
#include "encryptedPacket.h"
@@ -395,6 +396,14 @@ int main(int argc, char* argv[])
cLog.msg(Log::PRIO_NOTICE) << "anytun started...";
gOpt.parse_post(); // print warnings
+// gResolver.init();
+// gResolver.resolveUdp(gOpt.getRemoteAddr(), gOpt.getRemotePort());
+// gResolver.resolveTcp(gOpt.getRemoteAddr(), gOpt.getRemotePort());
+
+// while(1)
+// boost::this_thread::sleep(boost::posix_time::milliseconds(1000));
+// exit(0);
+
#ifndef NO_DAEMON
#ifndef NO_PRIVDROP
PrivInfo privs(gOpt.getUsername(), gOpt.getGroupname());