fix optimist's args
This commit is contained in:
parent
ecd849f246
commit
54d08f4ee7
19
bin/peerjs
19
bin/peerjs
@ -8,24 +8,12 @@ const PeerServer = require('../src').PeerServer;
|
||||
const opts = require('optimist')
|
||||
.usage('Usage: $0')
|
||||
.options({
|
||||
debug: {
|
||||
demand: false,
|
||||
alias: 'd',
|
||||
description: 'debug',
|
||||
default: false
|
||||
},
|
||||
timeout: {
|
||||
expire_timeout: {
|
||||
demand: false,
|
||||
alias: 't',
|
||||
description: 'timeout (milliseconds)',
|
||||
default: 5000
|
||||
},
|
||||
ip_limit: {
|
||||
demand: false,
|
||||
alias: 'i',
|
||||
description: 'IP limit',
|
||||
default: 5000
|
||||
},
|
||||
concurrent_limit: {
|
||||
demand: false,
|
||||
alias: 'c',
|
||||
@ -59,6 +47,11 @@ const opts = require('optimist')
|
||||
allow_discovery: {
|
||||
demand: false,
|
||||
description: 'allow discovery of peers'
|
||||
},
|
||||
proxied: {
|
||||
demand: false,
|
||||
description: 'Set true if PeerServer stays behind a reverse proxy',
|
||||
default: false
|
||||
}
|
||||
})
|
||||
.boolean('allow_discovery')
|
||||
|
Loading…
x
Reference in New Issue
Block a user