Fix announcements for SSL sockets
This commit is contained in:
parent
b3f4fc2b52
commit
87ee45165d
2 changed files with 6 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ module.exports = function (Server) {
|
|||
ActionLog.record(user.ip, user.name, "acp-announce", data);
|
||||
Server.announcement = data;
|
||||
Server.io.sockets.emit("announcement", data);
|
||||
if (Server.cfg["enable-ssl"])
|
||||
Server.sslio.sockets.emit("announcement", data);
|
||||
});
|
||||
|
||||
user.socket.on("acp-announce-clear", function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue