Skip to content

Commit 48941f4

Browse files
committed
trying to bind supertest to host 0.0.0.0
1 parent e977bbd commit 48941f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/routes/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ var express = require('express');
1212

1313
var app = express();
1414
app.use('/',router);
15+
var server = app.listen(config.port,'0.0.0.0', function () {
16+
var host = server.address().address;
17+
var port = server.address().port;
18+
console.log('listening on host '+host+', port '+config.port+'!');
19+
});
1520

1621
// init
1722

0 commit comments

Comments
 (0)