mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-05-03 09:12:52 +00:00
build fix
This commit is contained in:
parent
ec0e8a9a43
commit
902e03bccc
19
selftest.cpp
19
selftest.cpp
@ -49,7 +49,6 @@
|
|||||||
#include "osdep/OSUtils.hpp"
|
#include "osdep/OSUtils.hpp"
|
||||||
#include "osdep/Phy.hpp"
|
#include "osdep/Phy.hpp"
|
||||||
#include "osdep/Http.hpp"
|
#include "osdep/Http.hpp"
|
||||||
#include "osdep/BackgroundResolver.hpp"
|
|
||||||
#include "osdep/PortMapper.hpp"
|
#include "osdep/PortMapper.hpp"
|
||||||
#include "osdep/Thread.hpp"
|
#include "osdep/Thread.hpp"
|
||||||
|
|
||||||
@ -1012,23 +1011,6 @@ static int testPhy()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testResolver()
|
|
||||||
{
|
|
||||||
std::cout << "[resolver] Testing BackgroundResolver..."; std::cout.flush();
|
|
||||||
|
|
||||||
BackgroundResolver r("tcp-fallback.zerotier.com");
|
|
||||||
r.resolveNow();
|
|
||||||
r.wait();
|
|
||||||
|
|
||||||
std::vector<InetAddress> ips(r.get());
|
|
||||||
for(std::vector<InetAddress>::const_iterator ip(ips.begin());ip!=ips.end();++ip) {
|
|
||||||
std::cout << ' ' << ip->toString();
|
|
||||||
}
|
|
||||||
std::cout << std::endl;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
static int testHttp()
|
static int testHttp()
|
||||||
{
|
{
|
||||||
@ -1136,7 +1118,6 @@ int main(int argc,char **argv)
|
|||||||
r |= testIdentity();
|
r |= testIdentity();
|
||||||
r |= testCertificate();
|
r |= testCertificate();
|
||||||
r |= testPhy();
|
r |= testPhy();
|
||||||
r |= testResolver();
|
|
||||||
//r |= testHttp();
|
//r |= testHttp();
|
||||||
//*/
|
//*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user