whoops I missed this one

pull/2295/head
John McLear 2014-11-04 23:29:45 +00:00
parent 9fa77cdea2
commit 053ff3097d
1 changed files with 12 additions and 16 deletions

View File

@ -117,8 +117,6 @@ exports.handleDisconnect = function(client)
if(session && session.author) if(session && session.author)
{ {
console.log(remoteAddress);
// Get the IP address from our persistant object // Get the IP address from our persistant object
var ip = remoteAddress[client.id]; var ip = remoteAddress[client.id];
@ -1047,8 +1045,8 @@ function handleClientReady(client, message)
sessioninfos[client.id].readonly = padIds.readonly; sessioninfos[client.id].readonly = padIds.readonly;
//Log creation/(re-)entering of a pad //Log creation/(re-)entering of a pad
/* var ip = remoteAddress[client.id];
client.get('remoteAddress', function(er, ip) {
//Anonymize the IP address if IP logging is disabled //Anonymize the IP address if IP logging is disabled
if(settings.disableIPlogging) { if(settings.disableIPlogging) {
ip = 'ANONYMOUS'; ip = 'ANONYMOUS';
@ -1060,8 +1058,6 @@ function handleClientReady(client, message)
else if(pad.head == 0) { else if(pad.head == 0) {
accessLogger.info('[CREATE] Pad "'+padIds.padId+'": Client '+client.id+' with IP "'+ip+'" created the pad'); accessLogger.info('[CREATE] Pad "'+padIds.padId+'": Client '+client.id+' with IP "'+ip+'" created the pad');
} }
})
*/
//If this is a reconnect, we don't have to send the client the ClientVars again //If this is a reconnect, we don't have to send the client the ClientVars again
if(message.reconnect == true) if(message.reconnect == true)