From acbf075280284522cb838f66d8226d38e905c850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=98=89=E4=BC=9F?= <8473136@qq.com> Date: Wed, 25 Sep 2024 10:48:09 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E5=90=AF=E5=8A=A8=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/api/frpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/api/frpc.ts b/electron/api/frpc.ts index 740b63c..b7f9fc7 100644 --- a/electron/api/frpc.ts +++ b/electron/api/frpc.ts @@ -36,7 +36,7 @@ const getFrpcVersionWorkerPath = ( const isRangePort = (m: Proxy) => { return ( (m.type === "tcp" || m.type === "udp") && - (m.localPort.indexOf("-") !== -1 || m.localPort.indexOf(",") !== -1) + (String(m.localPort).indexOf("-") !== -1 || String(m.localPort).indexOf(",") !== -1) ); };