mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
Write binary of world too.
This commit is contained in:
parent
f5b465c0e1
commit
637d50a9de
1 changed files with 2 additions and 3 deletions
|
@ -156,10 +156,9 @@ int main(int argc,char **argv)
|
|||
fprintf(stderr,"FATAL: serialization test failed!"ZT_EOL_S);
|
||||
return 1;
|
||||
}
|
||||
//fwrite(outtmp.data(),outtmp.size(),1,stdout);
|
||||
//fflush(stdout);
|
||||
|
||||
//fprintf(stderr,"INFO: wrote %u bytes to stdout"ZT_EOL_S,outtmp.size());
|
||||
OSUtils::writeFile("world.bin",std::string((const char *)outtmp.data(),outtmp.size()));
|
||||
fprintf(stderr,"INFO: world.bin written with %u bytes of binary world data."ZT_EOL_S,outtmp.size());
|
||||
|
||||
fprintf(stdout,ZT_EOL_S);
|
||||
fprintf(stdout,"#define ZT_DEFAULT_WORLD_LENGTH %u"ZT_EOL_S,outtmp.size());
|
||||
|
|
Loading…
Add table
Reference in a new issue