Skip to content

Commit 27ef170

Browse files
committed
Fix Local Port Host setting
Fixes microsoft#135201
1 parent 534d68b commit 27ef170

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/platform/remote/node/tunnelService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ export class BaseTunnelService extends AbstractTunnelService {
147147
}
148148

149149
private get defaultTunnelHost(): string {
150-
return (this.configurationService.getValue('remote.localPortHost') === 'localhost') ? '127.0.0.1' : '0.0.0.0';
150+
const settingValue = this.configurationService.getValue('remote.localPortHost');
151+
return (!settingValue || settingValue === 'localhost') ? '127.0.0.1' : '0.0.0.0';
151152
}
152153

153154
protected retainOrCreateTunnel(addressProvider: IAddressProvider, remoteHost: string, remotePort: number, localPort: number | undefined, elevateIfNeeded: boolean, privacy: string, protocol?: string): Promise<RemoteTunnel | undefined> | undefined {

0 commit comments

Comments
 (0)