Skip to content

Commit 608dfc1

Browse files
authored
Catch all localhost duplicates when forwarding a port (#112575)
Fixes #112571
1 parent 8b5ece7 commit 608dfc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/services/remote/common/remoteExplorerService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function mapHasAddressLocalhostOrAllInterfaces<T>(map: Map<string, T>, ho
9696
if (originalAddress) {
9797
return originalAddress;
9898
}
99-
const otherHost = isAllInterfaces(host) ? 'localhost' : (host === 'localhost' ? '0.0.0.0' : undefined);
99+
const otherHost = isAllInterfaces(host) ? 'localhost' : (isLocalhost(host) ? '0.0.0.0' : undefined);
100100
if (otherHost) {
101101
return mapHasAddress(map, otherHost, port);
102102
}

0 commit comments

Comments
 (0)