Skip to content

Commit 22caeb9

Browse files
committed
handle v6 ip addresses in remote-resources rewrite
1 parent 665ac1d commit 22caeb9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/vs/base/common/network.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ class RemoteAuthoritiesImpl {
9292
return this._delegate(uri);
9393
}
9494
const authority = uri.authority;
95-
const host = this._hosts[authority];
95+
let host = this._hosts[authority];
96+
if (host.indexOf(':') !== -1) {
97+
host = `[${host}]`;
98+
}
9699
const port = this._ports[authority];
97100
const connectionToken = this._connectionTokens[authority];
98101
return URI.from({

0 commit comments

Comments
 (0)