From be7a7ba47080e12303b5ed5a93a9805f795ff901 Mon Sep 17 00:00:00 2001 From: barnettZQG Date: Mon, 24 Oct 2022 11:03:52 +0800 Subject: [PATCH] Fix: support to open the tcp address directly (#623) Signed-off-by: barnettZQG Signed-off-by: barnettZQG --- src/utils/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index e2ed963aa..204991cea 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -110,6 +110,10 @@ export function getLink(endpointObj: Endpoint) { if (appProtocol && appProtocol !== '') { protocol = appProtocol; } + // Support to open this address in a new window directly. + if (protocol == 'tcp') { + protocol = 'http'; + } if (host == '') { return path; }