You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix #1741 - change default to localhost
and update docs
This commit is contained in:
@@ -33,7 +33,7 @@ export default class RedisSocket extends EventEmitter {
|
||||
options ??= {};
|
||||
if (!(options as net.IpcSocketConnectOpts).path) {
|
||||
(options as net.TcpSocketConnectOpts).port ??= 6379;
|
||||
(options as net.TcpSocketConnectOpts).host ??= '127.0.0.1';
|
||||
(options as net.TcpSocketConnectOpts).host ??= 'localhost';
|
||||
}
|
||||
|
||||
options.connectTimeout ??= 5000;
|
||||
|
Reference in New Issue
Block a user