Skip to content

Commit af2f470

Browse files
Expose cf_blacklist as a config variable.
1 parent fdf7f8b commit af2f470

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "lib"]
22
path = lib
3-
url = git://github.com/markokr/libusual.git
3+
url = git://github.com/i0rek/libusual.git

include/bouncer.h

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <usual/statlist.h>
2828
#include <usual/string.h>
2929
#include <usual/logging.h>
30+
#include <usual/blacklisting.h>
3031
#include <usual/aatree.h>
3132
#include <usual/hashing/lookup3.h>
3233
#include <usual/slab.h>
@@ -408,6 +409,8 @@ extern int cf_log_connections;
408409
extern int cf_log_disconnections;
409410
extern int cf_log_pooler_errors;
410411

412+
extern int cf_blacklist;
413+
411414
extern usec_t g_suspend_start;
412415

413416
extern struct DNSContext *adns;

lib

Submodule lib updated from c0111d4 to e911be8

src/main.c

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ CF_ABS("min_pool_size", CF_INT, cf_min_pool_size, 0, "0"),
182182
CF_ABS("reserve_pool_size", CF_INT, cf_res_pool_size, 0, "0"),
183183
CF_ABS("reserve_pool_timeout", CF_TIME_USEC, cf_res_pool_timeout, 0, "5"),
184184
CF_ABS("syslog", CF_INT, cf_syslog, 0, "0"),
185+
CF_ABS("blacklist", CF_INT, cf_blacklist, 0, "0"),
185186
CF_ABS("syslog_facility", CF_STR, cf_syslog_facility, 0, "daemon"),
186187
CF_ABS("syslog_ident", CF_STR, cf_syslog_ident, 0, "pgbouncer"),
187188
#ifndef WIN32

0 commit comments

Comments
 (0)