Skip to content

Commit

Permalink
fix: browser debugging when using a WSL remote
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Apr 1, 2021
1 parent fb353ca commit 2994e05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This changelog records changes to stable releases since 1.50.2. "TBA" changes he
- chore: update wording on debug terminal label to match new profiles
- fix: 'node version is outdated' incorrectly showing with auto attach ([#957](https://github.com/microsoft/vscode-js-debug/issues/957))
- fix: programs not terminating in 'run without debugging' with break on exception ([ref](https://github.com/microsoft/vscode/issues/119340))
- fix: browser debugging when using a WSL remote ([ref](https://github.com/microsoft/vscode/issues/120227))

## v1.55.1 - 2021-03-24

Expand Down
2 changes: 1 addition & 1 deletion src/adapter/portLeaseTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const acquireTrackedServer = async (
ct?: CancellationToken,
) => {
const server = overridePort
? net.createServer(onSocket).listen(overridePort)
? net.createServer(onSocket).listen(overridePort, '127.0.0.1')
: await findOpenPort({ tester: makeAcquireTcpServer(onSocket) }, ct);
const dispose = tracker.register((server.address() as net.AddressInfo).port);
server.on('close', () => dispose.dispose());
Expand Down
2 changes: 1 addition & 1 deletion src/common/findOpenPort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const makeAcquireTcpServer = (onSocket: (socket: Socket) => void): PortTe
let disposable: IDisposable | undefined;
return new Promise<Server>((resolve, reject) => {
const server = createServer(onSocket);
server.listen(port);
server.listen(port, '127.0.0.1');
server.on('error', reject);
server.on('listening', () => resolve(server));

Expand Down

0 comments on commit 2994e05

Please sign in to comment.