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')
|
const opts = require('optimist')
|
||||||
.usage('Usage: $0')
|
.usage('Usage: $0')
|
||||||
.options({
|
.options({
|
||||||
debug: {
|
expire_timeout: {
|
||||||
demand: false,
|
|
||||||
alias: 'd',
|
|
||||||
description: 'debug',
|
|
||||||
default: false
|
|
||||||
},
|
|
||||||
timeout: {
|
|
||||||
demand: false,
|
demand: false,
|
||||||
alias: 't',
|
alias: 't',
|
||||||
description: 'timeout (milliseconds)',
|
description: 'timeout (milliseconds)',
|
||||||
default: 5000
|
default: 5000
|
||||||
},
|
},
|
||||||
ip_limit: {
|
|
||||||
demand: false,
|
|
||||||
alias: 'i',
|
|
||||||
description: 'IP limit',
|
|
||||||
default: 5000
|
|
||||||
},
|
|
||||||
concurrent_limit: {
|
concurrent_limit: {
|
||||||
demand: false,
|
demand: false,
|
||||||
alias: 'c',
|
alias: 'c',
|
||||||
@ -59,6 +47,11 @@ const opts = require('optimist')
|
|||||||
allow_discovery: {
|
allow_discovery: {
|
||||||
demand: false,
|
demand: false,
|
||||||
description: 'allow discovery of peers'
|
description: 'allow discovery of peers'
|
||||||
|
},
|
||||||
|
proxied: {
|
||||||
|
demand: false,
|
||||||
|
description: 'Set true if PeerServer stays behind a reverse proxy',
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.boolean('allow_discovery')
|
.boolean('allow_discovery')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user