File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/vs/platform/remote/node Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class NodeRemoteTunnel extends Disposable implements RemoteTunnel {
56
56
this . _server . on ( 'error' , this . _errorListener ) ;
57
57
58
58
this . tunnelRemotePort = tunnelRemotePort ;
59
- this . tunnelRemoteHost = ( isLocalhost ( tunnelRemoteHost ) || isAllInterfaces ( tunnelRemoteHost ) ) ? 'localhost' : tunnelRemoteHost ;
59
+ this . tunnelRemoteHost = tunnelRemoteHost ;
60
60
}
61
61
62
62
public override async dispose ( ) : Promise < void > {
@@ -98,7 +98,8 @@ class NodeRemoteTunnel extends Disposable implements RemoteTunnel {
98
98
// pause reading on the socket until we have a chance to forward its data
99
99
localSocket . pause ( ) ;
100
100
101
- const protocol = await connectRemoteAgentTunnel ( this . _options , this . tunnelRemoteHost , this . tunnelRemotePort ) ;
101
+ const tunnelRemoteHost = ( isLocalhost ( this . tunnelRemoteHost ) || isAllInterfaces ( this . tunnelRemoteHost ) ) ? 'localhost' : this . tunnelRemoteHost ;
102
+ const protocol = await connectRemoteAgentTunnel ( this . _options , tunnelRemoteHost , this . tunnelRemotePort ) ;
102
103
const remoteSocket = ( < NodeSocket > protocol . getSocket ( ) ) . socket ;
103
104
const dataChunk = protocol . readEntireBuffer ( ) ;
104
105
protocol . dispose ( ) ;
You can’t perform that action at this time.
0 commit comments