From 4e4949134455455fb42bfc0428c3856239808d1e Mon Sep 17 00:00:00 2001 From: jldec Date: Sat, 7 Sep 2024 06:53:21 -0400 Subject: [PATCH] v2.13.1 listen on 0.0.0.0 --- package.json | 2 +- server.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c3bc49a..ea0260d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pub-server", - "version": "2.13.0", + "version": "2.13.1", "description": "markdown site generator, web server, and editor", "main": "server.js", "preferGlobal": true, diff --git a/server.js b/server.js index d667645..a2c13c3 100644 --- a/server.js +++ b/server.js @@ -198,14 +198,14 @@ function pubServer(opts) { server.http.close(); opts.port = (parseInt(opts.port) || 3001) + 1; log('port in use, trying', opts.port); - server.http.listen(opts.port); + server.http.listen(opts.port, '0.0.0.0'); tried ++; } }); require('./server/handle-errors')(server); - server.http.listen(opts.port); + server.http.listen(opts.port, '0.0.0.0'); log('port', opts.port); process.on('SIGTERM', function() {