You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Fix #645
This commit is contained in:
2
index.js
2
index.js
@@ -1264,7 +1264,7 @@ var createClient_tcp = function (port_arg, host_arg, options) {
|
||||
var cnxOptions = {
|
||||
'port' : port_arg || default_port,
|
||||
'host' : host_arg || default_host,
|
||||
'family' : (options && options.family === 'IPv6') ? 'IPv6' : 'IPv4'
|
||||
'family' : (options && options.family === 'IPv6') ? 6 : 4
|
||||
};
|
||||
var net_client = net.createConnection(cnxOptions);
|
||||
var redis_client = new RedisClient(net_client, options || {});
|
||||
|
Reference in New Issue
Block a user