Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed Oct 27, 2021
1 parent fd80612 commit 120446a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extension-runners/chromium.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ export class ChromiumExtensionRunner {
// Start a websocket server on a free localhost TCP port.
this.wss = await new Promise((resolve) => {
const server = new WebSocket.Server(
// Use a ipv4 host so we don't need to escape ipv6 address
// https://github.com/mozilla/web-ext/issues/2331
{port: 0, host: '127.0.0.1'},
// Wait the server to be listening (so that the extension
// runner can successfully retrieve server address and port).
Expand Down

0 comments on commit 120446a

Please sign in to comment.