浏览代码

add host arg to app

afrokick 6 年之前
父节点
当前提交
db30a334c0
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      bin/peerjs

+ 5 - 0
bin/peerjs

@@ -34,6 +34,11 @@ 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',