ソースを参照

java code still needed to reflect PEER_ROLE_RELAY rename to PEER_ROLE_UPSTREAM

Grant Limberg 9 年 前
コミット
40d3993ceb
2 ファイル変更3 行追加3 行削除
  1. 1 1
      java/jni/ZT_jniutils.cpp
  2. 2 2
      java/src/com/zerotier/sdk/PeerRole.java

+ 1 - 1
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";

+ 2 - 2
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