Skip to content

Commit

Permalink
v2.13.1 listen on 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jldec committed Sep 7, 2024
1 parent d77bc68 commit 4e49491
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4e49491

Please sign in to comment.