Skip to content

Commit

Permalink
Add privacy and protocol to tunnels API
Browse files Browse the repository at this point in the history
Fixes #124334
  • Loading branch information
alexr00 committed Nov 10, 2021
1 parent cd823d8 commit 1a6e4fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/vs/platform/remote/common/remoteAuthorityResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export interface ResolvedOptions {
export interface TunnelDescription {
remoteAddress: { port: number, host: string };
localAddress: { port: number, host: string } | string;
privacy?: string;
protocol?: string;
}
export interface TunnelInformation {
environmentTunnels?: TunnelDescription[];
Expand Down
4 changes: 3 additions & 1 deletion src/vs/workbench/api/browser/mainThreadTunnelService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ export class MainThreadTunnelService extends Disposable implements MainThreadTun
return (await this.tunnelService.tunnels).map(tunnel => {
return {
remoteAddress: { port: tunnel.tunnelRemotePort, host: tunnel.tunnelRemoteHost },
localAddress: tunnel.localAddress
localAddress: tunnel.localAddress,
privacy: tunnel.privacy,
protocol: tunnel.protocol
};
});
}
Expand Down

0 comments on commit 1a6e4fc

Please sign in to comment.