Skip to content

Commit

Permalink
Fix: support to open the tcp address directly (#623)
Browse files Browse the repository at this point in the history
Signed-off-by: barnettZQG <[email protected]>

Signed-off-by: barnettZQG <[email protected]>
  • Loading branch information
barnettZQG authored Oct 24, 2022
1 parent 9a30505 commit be7a7ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit be7a7ba

Please sign in to comment.