1
0
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:
leibale
2021-11-27 22:53:59 -05:00
parent e81bf64914
commit 2d2d58d881
2 changed files with 4 additions and 3 deletions

View File

@@ -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;