Forráskód Böngészése

don't need protocol param

Michelle Bu 12 éve
szülő
commit
3e7d9dfead
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      lib/peer.js

+ 2 - 2
lib/peer.js

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