Skip to content

Commit

Permalink
fix resource rewrite before host available
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Oct 14, 2019
1 parent 6cb2255 commit 7aa3d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/base/common/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class RemoteAuthoritiesImpl {
}
const authority = uri.authority;
let host = this._hosts[authority];
if (host.indexOf(':') !== -1) {
if (host && host.indexOf(':') !== -1) {
host = `[${host}]`;
}
const port = this._ports[authority];
Expand Down

0 comments on commit 7aa3d90

Please sign in to comment.