Skip to content

Commit e661d1b

Browse files
author
Trygve Lie
committed
fix: Use post 0.0.0.0 instead of localhost
1 parent 93e4675 commit e661d1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/http-server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class HttpServer {
2222

2323
listen() {
2424
return new Promise((resolve) => {
25-
this.server = this.app.listen(0, 'localhost', () => {
25+
this.server = this.app.listen(0, '0.0.0.0', () => {
2626
this.address = `http://${this.server.address().address}:${
2727
this.server.address().port
2828
}`;

lib/https-server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class HttpsServer {
3232

3333
listen() {
3434
return new Promise((resolve) => {
35-
this.server = this.app.listen(0, 'localhost', () => {
35+
this.server = this.app.listen(0, '0.0.0.0', () => {
3636
this.address = `https://${this.server.address().address}:${
3737
this.server.address().port
3838
}`;

0 commit comments

Comments
 (0)