File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,7 @@ export const PortForwardPopoverView: FC<PortForwardPopoverViewProps> = ({
393
393
agent . name ,
394
394
workspaceName ,
395
395
username ,
396
+ share . protocol === "https" ,
396
397
) ;
397
398
const label = share . port ;
398
399
return (
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ export const portForwardURL = (
4
4
agentName : string ,
5
5
workspaceName : string ,
6
6
username : string ,
7
+ https = false ,
7
8
) : string => {
8
9
const { location } = window ;
10
+ const suffix = https ? "s" : "" ;
9
11
10
- const subdomain = `${
11
- isNaN ( port ) ? 3000 : port
12
- } --${ agentName } --${ workspaceName } --${ username } `;
12
+ const subdomain = `${ port
13
+ } ${ suffix } --${ agentName } --${ workspaceName } --${ username } `;
13
14
return `${ location . protocol } //${ host } ` . replace ( "*" , subdomain ) ;
14
15
} ;
15
16
@@ -53,6 +54,7 @@ export const openMaybePortForwardedURL = (
53
54
portForwardURL (
54
55
proxyHost ,
55
56
parseInt ( url . port ) ,
57
+
56
58
agentName ,
57
59
workspaceName ,
58
60
username ,
You can’t perform that action at this time.
0 commit comments