From 0eeb142327cbd2a30bba62105ff901fa40b5b568 Mon Sep 17 00:00:00 2001 From: David Mark Clements Date: Mon, 27 May 2024 17:25:51 +0200 Subject: [PATCH] bind to local only (#171) --- subsystems/sidecar/lib/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsystems/sidecar/lib/http.js b/subsystems/sidecar/lib/http.js index c4965eb1a..cca51ee45 100644 --- a/subsystems/sidecar/lib/http.js +++ b/subsystems/sidecar/lib/http.js @@ -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}`