mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-21 16:49:43 +00:00
Add some TRACE around pinging (for now), and refactor service/One to just run in the foreground as some platforms may not require threads at all.
This commit is contained in:
2
main.cpp
2
main.cpp
@ -37,7 +37,7 @@ using namespace ZeroTier;
|
||||
int main(int argc,char **argv)
|
||||
{
|
||||
One *one = One::newInstance("/tmp/foo",12345);
|
||||
one->waitForTermination();
|
||||
one->run();
|
||||
printf("termination reason: %d, message: %s\n",(int)one->reasonForTermination(),one->fatalErrorMessage().c_str());
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user