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') + '/'); });