Skip to content

Commit

Permalink
Temp add localhost hostname for cli server
Browse files Browse the repository at this point in the history
  • Loading branch information
ninadbstack committed Oct 13, 2023
1 parent 932d9ce commit 41fc994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class Server extends http.Server {
return new Promise((resolve, reject) => {
let handle = err => off() && err ? reject(err) : resolve(this);
let off = () => this.off('error', handle).off('listening', handle);
super.listen(port, handle).once('error', handle);
super.listen(port, 'localhost', handle).once('error', handle);
});
}

Expand Down

0 comments on commit 41fc994

Please sign in to comment.