Skip to content

Commit b123067

Browse files
committed
[fix] Listen to 0.0.0.0 by default.
1 parent 764fcd7 commit b123067

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/http-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var flatiron = require('flatiron'),
99
var opts = {
1010
root: argv._[0] || (path.existsSync("./public") ? "./public" : "./"),
1111
port: argv.p || 8080,
12-
host: argv.a || 'localhost',
12+
host: argv.a || '0.0.0.0',
1313
cache: argv.c || 3600, // in seconds.
1414
autoIndex: argv.i || true,
1515
silent: argv.s || argv.silent || false,
@@ -22,7 +22,7 @@ var showHelp = function () {
2222
"",
2323
"options:",
2424
" -p Port to use [8080]",
25-
" -a Address to use [localhost]",
25+
" -a Address to use [0.0.0.0]",
2626
" -i Display autoIndex [true]",
2727
" -s --silent Suppress log messages from output",
2828
" -h --help Print this list and exit.",

0 commit comments

Comments
 (0)