Skip to content

Commit

Permalink
Bind to localhost in newly generated configs
Browse files Browse the repository at this point in the history
This improves security by preventing connections from other computers. The
old behavior of binding to all network interfaces can still be enabled by
removing the listenAddress field from the config or setting it to "*".
  • Loading branch information
sgravrock committed Jun 15, 2024
1 parent adc8d2d commit 7287cfd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/examples/default_config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ export default {
stopOnSpecFailure: false,
random: true
},

// For security, listen only to localhost. You can also specify a different
// hostname or IP address, or remove the property or set it to "*" to listen
// to all network interfaces.
listenAddress: "localhost",

// The hostname that the browser will use to connect to the server.
hostname: "localhost",

browser: {
name: "firefox"
}
Expand Down
9 changes: 9 additions & 0 deletions lib/examples/default_esm_config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ export default {
stopOnSpecFailure: false,
random: true
},

// For security, listen only to localhost. You can also specify a different
// hostname or IP address, or remove the property or set it to "*" to listen
// to all network interfaces.
listenAddress: "localhost",

// The hostname that the browser will use to connect to the server.
hostname: "localhost",

browser: {
name: "firefox"
}
Expand Down

0 comments on commit 7287cfd

Please sign in to comment.