From cc6cd6dc3763857920c1bda16120e9ce815244ff Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Fri, 19 Apr 2024 18:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/top/wherewego/vnt/jni/Config.java | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) 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; }