summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2017-07-12 13:36:08 -0700
committerGrant Limberg <grant.limberg@zerotier.com>2017-07-12 13:36:22 -0700
commit69ae35494e86cbee83dbfdb166a14100f99e3010 (patch)
treebb5f40fb8ce9297335b4f7f4de649e6f8de855e0 /java
parent512c3af4eabaa085aca1c8b3dfdbcdd383135b9a (diff)
downloadinfinitytier-69ae35494e86cbee83dbfdb166a14100f99e3010.tar.gz
infinitytier-69ae35494e86cbee83dbfdb166a14100f99e3010.zip
put the correct file extensions on data written to disk in JNI
Diffstat (limited to 'java')
-rw-r--r--java/jni/com_zerotierone_sdk_Node.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/jni/com_zerotierone_sdk_Node.cpp b/java/jni/com_zerotierone_sdk_Node.cpp
index 4d0dcff9..91561ff9 100644
--- a/java/jni/com_zerotierone_sdk_Node.cpp
+++ b/java/jni/com_zerotierone_sdk_Node.cpp
@@ -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]);