Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 7440ab1

Browse files
author
pro2s
committed
win fix
1 parent ec8d845 commit 7440ab1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

comments.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@
2323
"id": 1464988717637,
2424
"author": "evil",
2525
"text": "<a href=\"javascript:alert(1)\">alert(1)</a>"
26+
},
27+
{
28+
"id": 1475656509004,
29+
"author": "123",
30+
"text": "321"
2631
}
2732
]

server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ app.post('/api/comments', function(req, res) {
7272
});
7373

7474

75-
app.listen(app.get('port'), function() {
76-
console.log('Server started: http://localhost:' + app.get('port') + '/');
75+
app.listen(app.get('port'), '0.0.0.0', function() {
76+
console.log('Server started: http://0.0.0.0:' + app.get('port') + '/');
7777
});

0 commit comments

Comments
 (0)