remove host arg because not used

This commit is contained in:
afrokick 2019-04-11 17:35:47 +03:00
parent db30a334c0
commit 948a0b8ff2
2 changed files with 2 additions and 8 deletions

View File

@ -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)',

View File

@ -1,5 +1,4 @@
module.exports = {
host: '0.0.0.0',
port: 9000,
expire_timeout: 5000,
key: 'peerjs',