fix compression in proxy, fix

This commit is contained in:
Romain Beaumont 2015-11-07 01:25:12 +01:00
parent f45c6dff49
commit 23b077b76f

View file

@ -122,10 +122,11 @@ srv.on('login', function(client) {
targetClient.state + "." + meta.name + " :" +
JSON.stringify(data));
}
if(!endedClient)
if(!endedClient) {
client.write(meta.name, data);
if (meta.name === 'set_compression' || meta.name === 'compression') // Set compression
client.compressionThreshold = data.threshold;
if (meta.name === 'set_compression') // Set compression
client.compressionThreshold = data.threshold;
}
}
});
var bufferEqual = require('buffer-equal');