瀏覽代碼

don't need protocol param

Michelle Bu 12 年之前
父節點
當前提交
3e7d9dfead
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/peer.js

+ 2 - 2
lib/peer.js

@@ -5,15 +5,15 @@ function Peer(options) {
   options = util.extend({
     debug: false,
     host: 'localhost',
-    protocol: 'http',
     config: { 'iceServers': [{ 'url': 'stun:stun.l.google.com:19302' }] },
     port: 80
   }, options);
   this.options = options;
   util.debug = options.debug;
 
+  // TODO: default should be the cloud server.
   this._server = options.host + ':' + options.port;
-  this._httpUrl = options.protocol + '://' + this._server;
+  this._httpUrl = 'http://' + this._server;
   this._config = options.config;
 
   // Ensure alphanumeric_-