mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Fix loop in port forwarding
This commit is contained in:
@@ -585,7 +585,7 @@ export class TunnelModel extends Disposable {
|
||||
existingTunnel.name = attributes?.label ?? name;
|
||||
this._onForwardPort.fire();
|
||||
}
|
||||
if (attributes?.protocol !== existingTunnel.localUri.scheme) {
|
||||
if (attributes?.protocol && attributes.protocol !== existingTunnel.localUri.scheme) {
|
||||
await this.close(existingTunnel.remoteHost, existingTunnel.remotePort);
|
||||
await this.forward({ host: existingTunnel.remoteHost, port: existingTunnel.remotePort }, local, name, source, elevateIfNeeded, isPublic, restore, attributes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user