mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00
Fix disabling ssl causing errors
This commit is contained in:
parent
a085ed83f2
commit
aadba26891
@ -1,3 +1,6 @@
|
||||
Tue Sep 10 16:45 2013 CDT
|
||||
* lib/channel.js: Don't attempt to emit to SSL sockets if it's disabled
|
||||
|
||||
Tue Sep 10 16:34 2013 CDT
|
||||
* www/channel.html, www/assets/js/jwplayer.js: Cache jwplayer script
|
||||
locally since their server doesn't support SSL
|
||||
|
@ -989,7 +989,8 @@ Channel.prototype.sendAll = function(message, data) {
|
||||
if(this.name == "")
|
||||
return;
|
||||
this.server.io.sockets.in(this.name).emit(message, data);
|
||||
this.server.sslio.sockets.in(this.name).emit(message, data);
|
||||
if (this.server.cfg["enable-ssl"])
|
||||
this.server.sslio.sockets.in(this.name).emit(message, data);
|
||||
}
|
||||
|
||||
Channel.prototype.sendAllWithPermission = function(perm, msg, data) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user