remove host arg because not used
This commit is contained in:
parent
db30a334c0
commit
948a0b8ff2
@ -34,11 +34,6 @@ const opts = require('optimist')
|
||||
demand: false,
|
||||
description: 'path to SSL certificate'
|
||||
},
|
||||
host: {
|
||||
demand: false,
|
||||
description: 'ip',
|
||||
default: '0.0.0.0'
|
||||
},
|
||||
port: {
|
||||
demand: true,
|
||||
alias: 'p',
|
||||
@ -84,8 +79,8 @@ if (opts.sslkey || opts.sslcert) {
|
||||
|
||||
const userPath = opts.path;
|
||||
const server = PeerServer(opts, server => {
|
||||
var host = server.address().address;
|
||||
var port = server.address().port;
|
||||
const host = server.address().address;
|
||||
const port = server.address().port;
|
||||
|
||||
console.log(
|
||||
'Started PeerServer on %s, port: %s, path: %s (v. %s)',
|
||||
|
@ -1,5 +1,4 @@
|
||||
module.exports = {
|
||||
host: '0.0.0.0',
|
||||
port: 9000,
|
||||
expire_timeout: 5000,
|
||||
key: 'peerjs',
|
||||
|
Loading…
x
Reference in New Issue
Block a user