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,
|
demand: false,
|
||||||
description: 'path to SSL certificate'
|
description: 'path to SSL certificate'
|
||||||
},
|
},
|
||||||
host: {
|
|
||||||
demand: false,
|
|
||||||
description: 'ip',
|
|
||||||
default: '0.0.0.0'
|
|
||||||
},
|
|
||||||
port: {
|
port: {
|
||||||
demand: true,
|
demand: true,
|
||||||
alias: 'p',
|
alias: 'p',
|
||||||
@ -84,8 +79,8 @@ if (opts.sslkey || opts.sslcert) {
|
|||||||
|
|
||||||
const userPath = opts.path;
|
const userPath = opts.path;
|
||||||
const server = PeerServer(opts, server => {
|
const server = PeerServer(opts, server => {
|
||||||
var host = server.address().address;
|
const host = server.address().address;
|
||||||
var port = server.address().port;
|
const port = server.address().port;
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
'Started PeerServer on %s, port: %s, path: %s (v. %s)',
|
'Started PeerServer on %s, port: %s, path: %s (v. %s)',
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
host: '0.0.0.0',
|
|
||||||
port: 9000,
|
port: 9000,
|
||||||
expire_timeout: 5000,
|
expire_timeout: 5000,
|
||||||
key: 'peerjs',
|
key: 'peerjs',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user