From 7440ab1d0ea13884bb8243aa7a1f270d42c4637b Mon Sep 17 00:00:00 2001 From: pro2s Date: Wed, 5 Oct 2016 13:51:33 +0300 Subject: [PATCH] win fix --- comments.json | 5 +++++ server.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/comments.json b/comments.json index 28816136..5eac285f 100644 --- a/comments.json +++ b/comments.json @@ -23,5 +23,10 @@ "id": 1464988717637, "author": "evil", "text": "alert(1)" + }, + { + "id": 1475656509004, + "author": "123", + "text": "321" } ] \ No newline at end of file diff --git a/server.js b/server.js index b5a7218a..c6a7aff4 100644 --- a/server.js +++ b/server.js @@ -72,6 +72,6 @@ app.post('/api/comments', function(req, res) { }); -app.listen(app.get('port'), function() { - console.log('Server started: http://localhost:' + app.get('port') + '/'); +app.listen(app.get('port'), '0.0.0.0', function() { + console.log('Server started: http://0.0.0.0:' + app.get('port') + '/'); });