diff options
author | Grant Limberg <grant.limberg@zerotier.com> | 2017-07-12 13:36:08 -0700 |
---|---|---|
committer | Grant Limberg <grant.limberg@zerotier.com> | 2017-07-12 13:36:22 -0700 |
commit | 69ae35494e86cbee83dbfdb166a14100f99e3010 (patch) | |
tree | bb5f40fb8ce9297335b4f7f4de649e6f8de855e0 /java | |
parent | 512c3af4eabaa085aca1c8b3dfdbcdd383135b9a (diff) | |
download | infinitytier-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.cpp | 8 |
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]); |