Skip to content

Commit

Permalink
fix: sourcemap lookups on ipv6 localhost addresses (#1621)
Browse files Browse the repository at this point in the history
TIL that assigning an invalid value to `url.hostname` silently fails
if invalid.

Fixes microsoft/vscode#167353
  • Loading branch information
connor4312 authored Mar 29, 2023
1 parent ac95032 commit 689a6eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This changelog records changes to stable releases since 1.50.2. "TBA" changes he

## Nightly (only)

- fix: sourcemap lookups on ipv6 localhost addresses ([vscode#167353](https://github.com/microsoft/vscode/issues/167353))
- feat: support ETX in stdio console endings ([vscode#175763](https://github.com/microsoft/vscode/issues/175763))

## v1.77 (March 2023)
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/resourceProvider/basicResourceProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class BasicResourceProvider implements IResourceProvider {
return response;
}

parsed.hostname = resolved.family === 6 ? '127.0.0.1' : '::1';
parsed.hostname = resolved.family === 6 ? '127.0.0.1' : '[::1]';
return this.requestHttp(parsed.toString(), options, cancellationToken);
}

Expand Down

0 comments on commit 689a6eb

Please sign in to comment.