From 755ebfcc1509aade72bc86571f6e63b3c5cab077 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 25 Aug 2016 00:07:19 +1000 Subject: [PATCH] * backend/redis : add 'hash' to config --- src/backends/redis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/redis.c b/src/backends/redis.c index c30238b..0ba14a5 100644 --- a/src/backends/redis.c +++ b/src/backends/redis.c @@ -4,7 +4,6 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ - #include #include #include @@ -23,6 +22,7 @@ struct _config { char name[ID_MAX + 1]; + char hash[ID_MAX * 2]; char error[256]; bool shared; time_t timeout; @@ -43,6 +43,7 @@ create(const char *id) { if ((cfg = calloc(1, sizeof(cfg_t))) == NULL) return NULL; snprintf(cfg->name, sizeof(cfg->name), "%s", id); + snprintf(cfg->hash, sizeof(cfg->hash), "f2b-banned-%s", id); return cfg; }