mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
No need to put time in .moon filename.
This commit is contained in:
parent
9b001823f6
commit
20085cd15b
1 changed files with 1 additions and 1 deletions
2
one.cpp
2
one.cpp
|
@ -852,7 +852,7 @@ static int idtool(int argc,char **argv)
|
||||||
Buffer<ZT_WORLD_MAX_SERIALIZED_LENGTH> wbuf;
|
Buffer<ZT_WORLD_MAX_SERIALIZED_LENGTH> wbuf;
|
||||||
w.serialize(wbuf);
|
w.serialize(wbuf);
|
||||||
char fn[128];
|
char fn[128];
|
||||||
Utils::snprintf(fn,sizeof(fn),"%.16llx_%.16llx.moon",w.id(),now);
|
Utils::snprintf(fn,sizeof(fn),"%.16llx.moon",w.id());
|
||||||
OSUtils::writeFile(fn,wbuf.data(),wbuf.size());
|
OSUtils::writeFile(fn,wbuf.data(),wbuf.size());
|
||||||
printf("wrote %s (signed world with timestamp %llu)" ZT_EOL_S,fn,(unsigned long long)now);
|
printf("wrote %s (signed world with timestamp %llu)" ZT_EOL_S,fn,(unsigned long long)now);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue