projects
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Proxy Protocol v2 handling
[exim.git]
/
src
/
src
/
drtables.c
diff --git
a/src/src/drtables.c
b/src/src/drtables.c
index c87e9c23bf313165d646f117f3befc296b330cd1..d48945e9076242c669dc6ba506427c17141792ac 100644
(file)
--- a/
src/src/drtables.c
+++ b/
src/src/drtables.c
@@
-2,7
+2,7
@@
* Exim - an Internet mail transport agent *
*************************************************/
* Exim - an Internet mail transport agent *
*************************************************/
-/* Copyright (c) University of Cambridge 1995 - 20
09
*/
+/* Copyright (c) University of Cambridge 1995 - 20
13
*/
/* See the file NOTICE for conditions of use and distribution. */
/* See the file NOTICE for conditions of use and distribution. */
@@
-447,6
+447,9
@@
extern lookup_module_info sqlite_lookup_module_info;
#ifdef EXPERIMENTAL_SPF
extern lookup_module_info spf_lookup_module_info;
#endif
#ifdef EXPERIMENTAL_SPF
extern lookup_module_info spf_lookup_module_info;
#endif
+#ifdef EXPERIMENTAL_REDIS
+extern lookup_module_info redis_lookup_module_info;
+#endif
#if defined(LOOKUP_PGSQL) && LOOKUP_PGSQL!=2
extern lookup_module_info pgsql_lookup_module_info;
#endif
#if defined(LOOKUP_PGSQL) && LOOKUP_PGSQL!=2
extern lookup_module_info pgsql_lookup_module_info;
#endif
@@
-489,13
+492,15
@@
extern lookup_module_info cdb_lookup_module_info;
void init_lookup_list(void)
{
void init_lookup_list(void)
{
+#ifdef LOOKUP_MODULE_DIR
DIR *dd;
struct dirent *ent;
DIR *dd;
struct dirent *ent;
- const pcre *regex_islookupmod = regex_must_compile(
- US"\\." DYNLIB_FN_EXT "$", FALSE, TRUE);
int countmodules = 0;
int moduleerrors = 0;
int countmodules = 0;
int moduleerrors = 0;
+#endif
struct lookupmodulestr *p;
struct lookupmodulestr *p;
+ const pcre *regex_islookupmod = regex_must_compile(
+ US"\\." DYNLIB_FN_EXT "$", FALSE, TRUE);
if (lookup_list_init_done)
return;
if (lookup_list_init_done)
return;
@@
-553,6
+558,10
@@
void init_lookup_list(void)
addlookupmodule(NULL, &pgsql_lookup_module_info);
#endif
addlookupmodule(NULL, &pgsql_lookup_module_info);
#endif
+#ifdef EXPERIMENTAL_REDIS
+ addlookupmodule(NULL, &redis_lookup_module_info);
+#endif
+
#ifdef EXPERIMENTAL_SPF
addlookupmodule(NULL, &spf_lookup_module_info);
#endif
#ifdef EXPERIMENTAL_SPF
addlookupmodule(NULL, &spf_lookup_module_info);
#endif