diff options
Diffstat (limited to 'dnsdist-lua-inspection-ffi.cc')
-rw-r--r-- | dnsdist-lua-inspection-ffi.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dnsdist-lua-inspection-ffi.cc b/dnsdist-lua-inspection-ffi.cc index 0187ebc..232d5f9 100644 --- a/dnsdist-lua-inspection-ffi.cc +++ b/dnsdist-lua-inspection-ffi.cc @@ -113,6 +113,11 @@ uint64_t dnsdist_ffi_stat_node_get_children_hits(const dnsdist_ffi_stat_node_t* void dnsdist_ffi_state_node_set_reason(dnsdist_ffi_stat_node_t* node, const char* reason, size_t reasonSize) { - node->reason = std::string(reason, reasonSize); + node->d_blockParameters.d_reason = std::string(reason, reasonSize); +} + +void dnsdist_ffi_state_node_set_action(dnsdist_ffi_stat_node_t* node, int blockAction) +{ + node->d_blockParameters.d_action = static_cast<DNSAction::Action>(blockAction); } #endif /* DISABLE_DYNBLOCKS */ |