repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 1d6730adfdf08e6f6af991dd67eca563d5d6e8f5:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 1d6730adfdf08e6f6af991dd67eca563d5d6e8f5
Author: James Baicoianu 
Date:   Thu Apr 26 03:36:28 2018 -0700

    Room private support

diff --git a/scripts/room.js b/scripts/room.js
index 2aab6a939aa0f67a1d0d3018a46e52ed04c28be9..
index ..87a0769b6e87cab08cc52d04c63309925d754f82 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -1457,7 +1457,7 @@ elation.require([
       return urls;
     }
     this.getServer = function() {
-      if (!this._server) {
+      if (!this._server && !this.private) {
         var hashargs = elation.url();
         var host = elation.utils.any(this.server, hashargs['janus.server'], elation.config.get('janusweb.network.host')),
             port = elation.utils.any(this.port, hashargs['janus.port'], elation.config.get('janusweb.network.port'), 5567);

-----END OF PAGE-----