summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2022-09-02 09:57:18 -0700
committerGitHub <noreply@github.com>2022-09-02 09:57:18 -0700
commitcfb6ca881132f7d44121935f55493e144511fbb6 (patch)
treeab9836d0c06d9e18f67f94faef51479a5e6a9588 /hiredis.h
parentcc7c35ce6091571b292c1daeb93ce91d1b809ee6 (diff)
Add REDIS_OPT_PREFER_UNSPEC (#1101)
Add REDIS_OPT_PREFER_UNSPEC See: #1099, #1096 Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Diffstat (limited to 'hiredis.h')
-rw-r--r--hiredis.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hiredis.h b/hiredis.h
index 1cbdde4..41cab2d 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -156,6 +156,7 @@ struct redisSsl;
#define REDIS_OPT_REUSEADDR 0x02
#define REDIS_OPT_PREFER_IPV4 0x04
#define REDIS_OPT_PREFER_IPV6 0x08
+#define REDIS_OPT_PREFER_IP_UNSPEC (REDIS_OPT_PREFER_IPV4 | REDIS_OPT_PREFER_IPV6)
/**
* Don't automatically free the async object on a connection failure,