summaryrefslogtreecommitdiff
path: root/selftest.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-30 13:10:22 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-30 13:10:22 -0800
commit67685213309a3e4aaa76a2f3173af5dd0ffa3eec (patch)
tree7b5745bfebac22cf83ef834b73d751b3467a07de /selftest.cpp
parent6c0de526e864716a6c11d05108d4034257a19d5c (diff)
downloadinfinitytier-67685213309a3e4aaa76a2f3173af5dd0ffa3eec.tar.gz
infinitytier-67685213309a3e4aaa76a2f3173af5dd0ffa3eec.zip
Ton of uPnP work and adding NAT-PMP support, still testing...
Diffstat (limited to 'selftest.cpp')
-rw-r--r--selftest.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/selftest.cpp b/selftest.cpp
index 87043ddd..e68f564c 100644
--- a/selftest.cpp
+++ b/selftest.cpp
@@ -58,6 +58,8 @@
#include "osdep/Phy.hpp"
#include "osdep/Http.hpp"
#include "osdep/BackgroundResolver.hpp"
+#include "osdep/PortMapper.hpp"
+#include "osdep/Thread.hpp"
#ifdef ZT_ENABLE_NETWORK_CONTROLLER
#include "controller/SqliteNetworkController.hpp"
@@ -1094,6 +1096,7 @@ int main(int argc,char **argv)
srand((unsigned int)time(0));
+ /*
r |= testSqliteNetworkController();
r |= testOther();
r |= testCrypto();
@@ -1103,9 +1106,17 @@ int main(int argc,char **argv)
r |= testPhy();
r |= testResolver();
//r |= testHttp();
+ */
if (r)
std::cout << std::endl << "SOMETHING FAILED!" << std::endl;
+#ifdef ZT_USE_MINIUPNPC
+ std::cout << std::endl;
+ std::cout << "[portmapper] Starting port mapper and waiting forever... use CTRL+C to exit. (enable ZT_PORTMAPPER_TRACE in PortMapper.cpp for output)" << std::endl;
+ PortMapper mapper(12345,"ZeroTier/__selftest");
+ Thread::sleep(0xffffffff);
+#endif
+
return r;
}