only triggering forum updated messaging if hostname matches, fixes #6333

This commit is contained in:
Julian Lam
2018-02-20 15:32:44 -05:00
parent 9a1f722a05
commit a4a961639d
4 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
'use strict';
var os = require('os');
var async = require('async');
var nconf = require('nconf');
var winston = require('winston');
@@ -84,6 +85,7 @@ function onConnect(socket) {
socket.join('sess_' + socket.request.signedCookies[nconf.get('sessionKey')]);
io.sockets.sockets[socket.id].emit('checkSession', socket.uid);
io.sockets.sockets[socket.id].emit('setHostname', os.hostname());
}
function onMessage(socket, payload) {