Henning,
hoping I understand your questions correctly.
On 1/7/22 12:07 AM, Henning Svane wrote:
I have multiple test of the type
http-request set-var(txn.xmail_eas) bool(1) if XMail { url_beg -i
/microsoft-server-activesync }
Do I do all the test and at the end for the frontend block
I'm afraid I don't understand that question.
Make the http-request tarpit if { var(txn.xmail_eas || txn.xmail_xxx) -m bool }
This is not valid syntax.
Or should I do a
http-request tarpit if { var(txn.xmail_eas) -m bool }
for each test and exit from the frontend block from there.
Normally when I code in c/c++ I prefere only to have one return in the
procedure, but what is best way in HAProxy because I will make a lot of
unnecessary test.
I don't understand what you mean my "a lot of unnecessary tests".
Also will a http-request tarpit if { var(txn.xmail_eas ) -m bool }
Work like a return so it exit from the frontend?
http-request tarpit is documented that it:
> This stops the evaluation of the rules
So no further rules will be processed once 'tarpit' is executed.
Best regards
Tim Düsterhus