mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 10:46:33 +00:00
put the correct file extensions on data written to disk in JNI
This commit is contained in:
parent
512c3af4ea
commit
69ae35494e
@ -310,10 +310,10 @@ namespace {
|
||||
snprintf(p, sizeof(p), "planet");
|
||||
break;
|
||||
case ZT_STATE_OBJECT_MOON:
|
||||
snprintf(p, sizeof(p), "moons.d/%.16llx", (unsigned long long)id[0]);
|
||||
snprintf(p, sizeof(p), "moons.d/%.16llx.moon", (unsigned long long)id[0]);
|
||||
break;
|
||||
case ZT_STATE_OBJECT_NETWORK_CONFIG:
|
||||
snprintf(p, sizeof(p), "networks.d/%.16llx", (unsigned long long)id[0]);
|
||||
snprintf(p, sizeof(p), "networks.d/%.16llx.conf", (unsigned long long)id[0]);
|
||||
break;
|
||||
case ZT_STATE_OBJECT_PEER:
|
||||
snprintf(p, sizeof(p), "peers.d/%.10llx", (unsigned long long)id[0]);
|
||||
@ -394,10 +394,10 @@ namespace {
|
||||
snprintf(p, sizeof(p), "planet");
|
||||
break;
|
||||
case ZT_STATE_OBJECT_MOON:
|
||||
snprintf(p, sizeof(p), "moons.d/%.16llx", (unsigned long long)id[0]);
|
||||
snprintf(p, sizeof(p), "moons.d/%.16llx.moon", (unsigned long long)id[0]);
|
||||
break;
|
||||
case ZT_STATE_OBJECT_NETWORK_CONFIG:
|
||||
snprintf(p, sizeof(p), "networks.d/%.16llx", (unsigned long long)id[0]);
|
||||
snprintf(p, sizeof(p), "networks.d/%.16llx.conf", (unsigned long long)id[0]);
|
||||
break;
|
||||
case ZT_STATE_OBJECT_PEER:
|
||||
snprintf(p, sizeof(p), "peers.d/%.10llx", (unsigned long long)id[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user