summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2016-09-21 14:12:20 -0700
committerGrant Limberg <grant.limberg@zerotier.com>2016-09-21 14:12:20 -0700
commit40d3993ceb64f924167572c3add7300abb434562 (patch)
treef8f4d2d59c34faea23d70b6441d53374e02d98c3
parent0564bb3b35117c7367469dd5582a5a4093078586 (diff)
downloadinfinitytier-40d3993ceb64f924167572c3add7300abb434562.tar.gz
infinitytier-40d3993ceb64f924167572c3add7300abb434562.zip
java code still needed to reflect PEER_ROLE_RELAY rename to PEER_ROLE_UPSTREAM
-rw-r--r--java/jni/ZT_jniutils.cpp2
-rw-r--r--java/src/com/zerotier/sdk/PeerRole.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/java/jni/ZT_jniutils.cpp b/java/jni/ZT_jniutils.cpp
index 7ecc7256..27ca7374 100644
--- a/java/jni/ZT_jniutils.cpp
+++ b/java/jni/ZT_jniutils.cpp
@@ -181,7 +181,7 @@ jobject createPeerRole(JNIEnv *env, ZT_PeerRole role)
fieldName = "PEER_ROLE_LEAF";
break;
case ZT_PEER_ROLE_UPSTREAM:
- fieldName = "PEER_ROLE_RELAY";
+ fieldName = "PEER_ROLE_UPSTREAM";
break;
case ZT_PEER_ROLE_ROOT:
fieldName = "PEER_ROLE_ROOTS";
diff --git a/java/src/com/zerotier/sdk/PeerRole.java b/java/src/com/zerotier/sdk/PeerRole.java
index d7d55f05..f281c1b6 100644
--- a/java/src/com/zerotier/sdk/PeerRole.java
+++ b/java/src/com/zerotier/sdk/PeerRole.java
@@ -34,9 +34,9 @@ public enum PeerRole {
PEER_ROLE_LEAF,
/**
- * relay node
+ * upstream node
*/
- PEER_ROLE_RELAY,
+ PEER_ROLE_UPSTREAM,
/**
* root server