summaryrefslogtreecommitdiff
path: root/blabouncer.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-07 12:43:04 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-07 12:43:04 +0100
commite4d1706031540ae74ff104c44adeb735ee0bfcf4 (patch)
tree46e12bb133f0810bf9f535ad8f34a7415746c31f /blabouncer.c
parent38bd2b2761b7d0f556945ffad78f73536e12e157 (diff)
Add a configuration option to include the date in the timestamp when replaying the replay log.
Diffstat (limited to 'blabouncer.c')
-rw-r--r--blabouncer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/blabouncer.c b/blabouncer.c
index 17ce41c..7d8dc06 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -935,6 +935,13 @@ int main(int argc, char *argv[]) {
exit(1);
}
+ // Should sending replay logs include a datestamp?
+ settings.replaydates= getconfint("replaydates", settings.conffile);
+ if (errno == ECONFINT) {
+ printf("main(): error getting 'replaydates' from configuration file.\n");
+ exit(1);
+ }
+
// What is the bouncer password?
if (!getconfstr("password", settings.conffile, settings.password)) {
printf("main(): error getting 'password' from configuration file.\n");