Added option to specify network interface binding
This commit is contained in:
@@ -8,6 +8,11 @@ var opts = require('nomnom')
|
|||||||
default: 'config.json',
|
default: 'config.json',
|
||||||
help: 'Configuration file'
|
help: 'Configuration file'
|
||||||
})
|
})
|
||||||
|
.option('bind', {
|
||||||
|
abbr: 'b',
|
||||||
|
default: "::",
|
||||||
|
help: 'Bind address'
|
||||||
|
})
|
||||||
.option('port', {
|
.option('port', {
|
||||||
abbr: 'p',
|
abbr: 'p',
|
||||||
default: 8080,
|
default: 8080,
|
||||||
@@ -24,5 +29,6 @@ var opts = require('nomnom')
|
|||||||
|
|
||||||
return require('./server')({
|
return require('./server')({
|
||||||
config: opts.config,
|
config: opts.config,
|
||||||
|
bind: opts.bind,
|
||||||
port: opts.port
|
port: opts.port
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user