Skip to content

Commit a426717

Browse files
committed
Also map 127.0.0.1 in webviews and forward it for openExternal
Fixes microsoft/vscode-remote-release#108
1 parent 0358d08 commit a426717

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/contrib/webview/common/portMapping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function extractLocalHostUriMetaDataForPortMapping(uri: URI): { address:
1313
if (uri.scheme !== 'http' && uri.scheme !== 'https') {
1414
return undefined;
1515
}
16-
const localhostMatch = /^(localhost):(\d+)$/.exec(uri.authority);
16+
const localhostMatch = /^(localhost|127\.0\.0\.1):(\d+)$/.exec(uri.authority);
1717
if (!localhostMatch) {
1818
return undefined;
1919
}

0 commit comments

Comments
 (0)