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 @@