Skip to content

Commit

Permalink
Fix security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Jul 8, 2020
1 parent 5a7603d commit 7b8cb86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HTTPKoaServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ async function startServer() {
console.log("start server");
if (!server) {
server = new Promise((resolve, reject) => {
let server = app.listen(port, (err) => {
let server = app.listen(port, '127.0.0.1', (err) => {
err ? reject(err) : resolve(server);
});
});
Expand Down

0 comments on commit 7b8cb86

Please sign in to comment.