Hi!

Am Do, Mai 25, 2023 at 22:20:03 +0200 schrieb Willy Tarreau:
On Thu, May 25, 2023 at 06:18:02PM +0200, Stephan Seitz wrote:
HA-Proxy 2.2.9
First, please note that this one misses many fixes, it's affected by
458 known bugs among wihch one critical and 28 major:

As Tim guessed this is the current version in Debian stable.


        http-request set-var(req.s1) 
req.fhdr(Authorization),regsub(^Basic\s+,,i),b64dec,regsub(:.+,)
didn't build with it, or the opposite. Here regex are not needed, I
think you could use:

        http-request set-var(req.s1) 
req.fhdr(Authorization),word(2),b64dec,word(1,:)

HA-Proxy doesn’t like this version with the change to txn:
while parsing 'http-request set-var(txn.s1)' rule : invalid arg 2 in converter 
'word' : missing arguments (got 1/2), type 'string' expected.

But my version is working with the change from req to txn.

Many thanks for your help.

Shade and sweet water!

        Stephan

--
|    If your life was a horse, you'd have to shoot it.    |

Reply via email to