diff --git a/vnt-jni/java/top/wherewego/vnt/jni/Config.java b/vnt-jni/java/top/wherewego/vnt/jni/Config.java index 5b626b1..1f13eb3 100644 --- a/vnt-jni/java/top/wherewego/vnt/jni/Config.java +++ b/vnt-jni/java/top/wherewego/vnt/jni/Config.java @@ -42,6 +42,10 @@ public class Config { * 仅使用中继转发 */ private boolean relay; + /** + * 设备id,请使用唯一值 + */ + private String deviceId; /** * 服务端地址 */ @@ -82,10 +86,6 @@ public class Config { * 虚拟网卡名称 仅在linux、windows、macos上支持 */ private String deviceName; - /** - * 虚拟网卡fd 仅在android上支持 - */ - private int deviceFd; /** * enum: relay/p2p/all */ @@ -174,6 +174,13 @@ public class Config { this.relay = relay; } + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } public String getServer() { return server; @@ -255,14 +262,6 @@ public class Config { this.deviceName = deviceName; } - public int getDeviceFd() { - return deviceFd; - } - - public void setDeviceFd(int deviceFd) { - this.deviceFd = deviceFd; - } - public String getUseChannel() { return useChannel; }