提交 a426717b 编写于 作者: M Matt Bierner

Also map 127.0.0.1 in webviews and forward it for openExternal

Fixes https://github.com/microsoft/vscode-remote-release/issues/108
上级 0358d081
......@@ -13,7 +13,7 @@ export function extractLocalHostUriMetaDataForPortMapping(uri: URI): { address:
if (uri.scheme !== 'http' && uri.scheme !== 'https') {
return undefined;
}
const localhostMatch = /^(localhost):(\d+)$/.exec(uri.authority);
const localhostMatch = /^(localhost|127\.0\.0\.1):(\d+)$/.exec(uri.authority);
if (!localhostMatch) {
return undefined;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册