mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-17 22:00:59 +01:00
handle v6 ip addresses in remote-resources rewrite
This commit is contained in:
@@ -92,7 +92,10 @@ class RemoteAuthoritiesImpl {
|
||||
return this._delegate(uri);
|
||||
}
|
||||
const authority = uri.authority;
|
||||
const host = this._hosts[authority];
|
||||
let host = this._hosts[authority];
|
||||
if (host.indexOf(':') !== -1) {
|
||||
host = `[${host}]`;
|
||||
}
|
||||
const port = this._ports[authority];
|
||||
const connectionToken = this._connectionTokens[authority];
|
||||
return URI.from({
|
||||
|
||||
Reference in New Issue
Block a user