Skip to content
Discussion options

You must be logged in to vote

The Lua code passed in function_code needs to return a function, so you would have to add return blacklistIP at the end of the snippet. But a bigger problem is that selectors and actions are not available in this context, so calling TimedIPSetRule() is not going to work. Right now I don't see a way to do what you want from the YAML configuration, so I'm afraid it would have to remain in Lua format. I'll consider making selectors and actions available in the YAML configuration context in 2.0.1.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AxelBomp
Comment options

Answer selected by AxelBomp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants