Download raw body.
relayd patch: allow http relays to have fallback tables
Hi,
Currently, relayd does not use fallback tables in an http relay
when there are matching filter rules. This is because it sets the
table before relay_from_table is called.
This small patch skips the goto when the table is down, allowing it
to search through the table list.
Wishing you all a good year,
Laurent
diff --git usr.sbin/relayd/relay.c usr.sbin/relayd/relay.c
index 6d0970802c5..c7837acd4e0 100644
--- usr.sbin/relayd/relay.c
+++ usr.sbin/relayd/relay.c
@@ -1289,9 +1289,12 @@ relay_from_table(struct rsession *con)
if (con->se_table != NULL) {
rlt = con->se_table;
table = rlt->rlt_table;
+
+ /* if the table is not up, continue searching */
if (table->conf.check && !table->up)
table = NULL;
- goto gottable;
+ else
+ goto gottable;
}
/* otherwise grep the first active table */
relayd patch: allow http relays to have fallback tables