You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
createClient was ignoring the host arg
This commit is contained in:
2
index.js
2
index.js
@@ -696,7 +696,7 @@ RedisClient.prototype.MULTI = function (commands) {
|
|||||||
|
|
||||||
exports.createClient = function (port_arg, host_arg, options) {
|
exports.createClient = function (port_arg, host_arg, options) {
|
||||||
var port = port_arg || default_port,
|
var port = port_arg || default_port,
|
||||||
host = host || default_host,
|
host = host_arg || default_host,
|
||||||
red_client, net_client;
|
red_client, net_client;
|
||||||
|
|
||||||
net_client = net.createConnection(port, host);
|
net_client = net.createConnection(port, host);
|
||||||
|
Reference in New Issue
Block a user