1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
This commit is contained in:
Bryce Baril
2014-08-11 10:33:33 -07:00
parent 84cfcb40b2
commit 75b0bc97ea

View File

@@ -1264,7 +1264,7 @@ var createClient_tcp = function (port_arg, host_arg, options) {
var cnxOptions = { var cnxOptions = {
'port' : port_arg || default_port, 'port' : port_arg || default_port,
'host' : host_arg || default_host, '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 net_client = net.createConnection(cnxOptions);
var redis_client = new RedisClient(net_client, options || {}); var redis_client = new RedisClient(net_client, options || {});