#define CONN_TRIGGER(_state) do { \
if (trunk->conf.conn_triggers) { \
trigger(unlang_interpret_get_thread_default(), \
- NULL, fr_table_str_by_value(trunk_conn_trigger_names, _state, \
+ trunk->conf.conn_trigger_cs, fr_table_str_by_value(trunk_conn_trigger_names, _state, \
"<INVALID>"), true, NULL); \
} \
} while (0)
#define REQUEST_TRIGGER(_state) do { \
if (trunk->conf.req_triggers) { \
trigger(unlang_interpret_get_thread_default(), \
- NULL, fr_table_str_by_value(trunk_req_trigger_names, _state, \
+ trunk->conf.req_trigger_cs, fr_table_str_by_value(trunk_req_trigger_names, _state, \
"<INVALID>"), true, NULL); \
} \
} while (0)
//!< was a failure, instead of failing them immediately.
bool conn_triggers; //!< Do we run connection related triggers?
+ CONF_SECTION *conn_trigger_cs; //!< Module conf section to find connection trigger section in.
bool req_triggers; //!< Do we run request related triggers?
+ CONF_SECTION *req_trigger_cs; //!< Module conf section to find request trigger section in.
} trunk_conf_t;
/** Public fields for the trunk