Fix localAddressPort in openTunnel

Fixes #88064
This commit is contained in:
Alex Ross
2020-01-06 10:48:15 +01:00
parent 541474a7d8
commit dccd0b23cc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export interface RemoteTunnel {
export interface TunnelOptions {
remoteAddress: { port: number, host: string };
localPort?: number;
localAddressPort?: number;
label?: string;
}
@@ -22,7 +22,7 @@ export class MainThreadTunnelService implements MainThreadTunnelServiceShape {
}
async $openTunnel(tunnelOptions: TunnelOptions): Promise<TunnelDto | undefined> {
const tunnel = await this.remoteExplorerService.forward(tunnelOptions.remoteAddress, tunnelOptions.localPort, tunnelOptions.label);
const tunnel = await this.remoteExplorerService.forward(tunnelOptions.remoteAddress, tunnelOptions.localAddressPort, tunnelOptions.label);
if (tunnel) {
return TunnelDto.fromServiceTunnel(tunnel);
}