handle v6 ip addresses in remote-resources rewrite

This commit is contained in:
Martin Aeschlimann
2019-09-30 17:42:37 +02:00
parent 665ac1da33
commit 22caeb97a4
+4 -1
View File
@@ -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({