From e14457fdc5c245c185bab40465f53507e9f86b5a Mon Sep 17 00:00:00 2001 From: fengbojiang Date: Wed, 15 Feb 2023 18:18:09 +0800 Subject: [PATCH] Redis can listen IPv6 address. --- README.md | 2 +- app/redis-6.2.6/src/anet_ff.c | 2 +- doc/F-Stack_Quick_Start_Guide.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f7748350f..595c9cea7 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ for more details, see [nginx guide](https://github.com/F-Stack/f-stack/blob/mast cd app/redis-6.2.6/deps/jemalloc ./autogen.sh - cd app/redis-6.2.6/ + cd ../.. make make install diff --git a/app/redis-6.2.6/src/anet_ff.c b/app/redis-6.2.6/src/anet_ff.c index b9e5172a1..d7fd6fdba 100644 --- a/app/redis-6.2.6/src/anet_ff.c +++ b/app/redis-6.2.6/src/anet_ff.c @@ -160,7 +160,7 @@ socket(int domain, int type, int protocol) return real_socket(domain, type, protocol); } - if ((AF_INET != domain) || (SOCK_STREAM != type && SOCK_DGRAM != type)) { + if ((AF_INET != domain && AF_INET6 != domain) || (SOCK_STREAM != type && SOCK_DGRAM != type)) { rc = real_socket(domain, type, protocol); return rc; } diff --git a/doc/F-Stack_Quick_Start_Guide.md b/doc/F-Stack_Quick_Start_Guide.md index fd2e2b43b..392f0d972 100644 --- a/doc/F-Stack_Quick_Start_Guide.md +++ b/doc/F-Stack_Quick_Start_Guide.md @@ -88,7 +88,7 @@ The mount point can be made permanent across reboots, by adding the following li cd app/redis-6.2.6/deps/jemalloc ./autogen.sh - cd app/redis-6.2.6/ + cd ../.. make # run with start.sh ./start.sh -b ./redis-server -o /path/to/redis.conf