2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-22 22:58:31 +00:00

fix: nodejs redis v4 interprets localhost as ipv6 address

But the redis only binds to 127.0.0.1, not ::1.

Avoid this problem by being explicit.
This commit is contained in:
David Arnold 2023-07-01 14:41:25 -05:00 committed by Ankush Menat
parent c2af169dd6
commit 697939e205

View File

@ -83,7 +83,7 @@ def update_config_for_frappe(config, bench_path):
for key in ("redis_cache", "redis_queue", "redis_socketio"):
if key not in config:
config[key] = f"redis://localhost:{ports[key]}"
config[key] = f"redis://127.0.0.1:{ports[key]}"
for key in ("webserver_port", "socketio_port", "file_watcher_port"):
if key not in config: