Skip to content

Commit

Permalink
bind to local only (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmarkclements committed Jun 4, 2024
1 parent e6dbef1 commit 30a173c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsystems/sidecar/lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ module.exports = class Http extends ReadyResource {

async _open () {
try {
await listen(this.server, 9342)
await listen(this.server, 9342, '127.0.0.1')
} catch {
await listen(this.server, 0)
await listen(this.server, 0, '127.0.0.1')
}
this.port = this.server.address().port
this.host = `http://127.0.0.1:${this.port}`
Expand Down

0 comments on commit 30a173c

Please sign in to comment.