Added option to specify network interface binding
This commit is contained in:
parent
8074cfb4c7
commit
53c1ef5786
1 changed files with 6 additions and 0 deletions
|
|
@ -8,6 +8,11 @@ var opts = require('nomnom')
|
|||
default: 'config.json',
|
||||
help: 'Configuration file'
|
||||
})
|
||||
.option('bind', {
|
||||
abbr: 'b',
|
||||
default: "::",
|
||||
help: 'Bind address'
|
||||
})
|
||||
.option('port', {
|
||||
abbr: 'p',
|
||||
default: 8080,
|
||||
|
|
@ -24,5 +29,6 @@ var opts = require('nomnom')
|
|||
|
||||
return require('./server')({
|
||||
config: opts.config,
|
||||
bind: opts.bind,
|
||||
port: opts.port
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue