Fix port forwarded nofication showing for the wrong port

Fixes #112159
This commit is contained in:
Alex Ross 2020-12-09 16:25:36 +01:00
parent 83993fb92c
commit f9d6df8ea1

View file

@ -411,6 +411,9 @@ class LinuxAutomaticPortForwarding extends Disposable {
if (mapHasAddressLocalhostOrAllInterfaces(this.remoteExplorerService.tunnelModel.detected, value.host, value.port)) {
return undefined;
}
if (mapHasAddressLocalhostOrAllInterfaces(this.remoteExplorerService.tunnelModel.forwarded, value.host, value.port)) {
return undefined;
}
const forwarded = await this.remoteExplorerService.forward(value);
if (forwarded) {
this.autoForwarded.add(address);