From b2f7d8adb3a69fd0ad6b3ed7eac2a6b7d2b70b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=98=89=E4=BC=9F?= <8473136@qq.com> Date: Sun, 11 Aug 2024 15:12:45 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=A2=9E=E5=8A=A0=E5=AF=B9udp?= =?UTF-8?q?=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/api/frpc.ts | 2 + src/views/proxy/index.vue | 182 ++++++++++++++++++++------------------ 2 files changed, 96 insertions(+), 88 deletions(-) diff --git a/electron/api/frpc.ts b/electron/api/frpc.ts index e61ecd9..99eae16 100644 --- a/electron/api/frpc.ts +++ b/electron/api/frpc.ts @@ -49,6 +49,7 @@ localPort = ${m.localPort} `; switch (m.type) { case "tcp": + case "udp": toml += `remotePort = ${m.remotePort}`; break; case "http": @@ -117,6 +118,7 @@ local_port = ${m.localPort} `; switch (m.type) { case "tcp": + case "udp": ini += `remote_port = ${m.remotePort}`; break; case "http": diff --git a/src/views/proxy/index.vue b/src/views/proxy/index.vue index 6b6abe2..35d24cf 100644 --- a/src/views/proxy/index.vue +++ b/src/views/proxy/index.vue @@ -1,10 +1,10 @@