1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

use the max port # in newer versions of node

This commit is contained in:
bcoe
2015-10-03 21:13:18 -07:00
parent 0db1152492
commit aad5045c8e

View File

@@ -159,11 +159,11 @@ module.exports = {
killConnection: function (client) {
// Change the connection option to a non existing one and destroy the stream
client.connectionOption = {
port: 999999,
port: 65535,
host: '127.0.0.1',
family: 4
};
client.address = '127.0.0.1:999999';
client.address = '127.0.0.1:65535';
client.stream.destroy();
}
};