mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 05:13:58 -07:00
Some cleanup, and bite the bullet and go ahead and write a simple Http client. Need a cross-platform built-in one to do cli right.
This commit is contained in:
parent
6c29e966dd
commit
53cbe485f0
14 changed files with 470 additions and 726 deletions
16
one.cpp
16
one.cpp
|
@ -75,6 +75,18 @@ using namespace ZeroTier;
|
|||
|
||||
static OneService *volatile zt1Service = (OneService *)0;
|
||||
|
||||
/****************************************************************************/
|
||||
/* zerotier-cli personality */
|
||||
/****************************************************************************/
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
static int cli(int argc, _TCHAR* argv[])
|
||||
#else
|
||||
static int cli(int argc,char **argv)
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* zerotier-idtool personality */
|
||||
/****************************************************************************/
|
||||
|
@ -107,9 +119,9 @@ static Identity getIdFromArg(char *arg)
|
|||
}
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
int idtool(int argc, _TCHAR* argv[])
|
||||
static int idtool(int argc, _TCHAR* argv[])
|
||||
#else
|
||||
int idtool(int argc,char **argv)
|
||||
static int idtool(int argc,char **argv)
|
||||
#endif
|
||||
{
|
||||
if (argc < 2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue