mouss wrote:
Henrik K wrote:
On Fri, Nov 07, 2008 at 09:49:43AM +0100, mouss wrote:
       # Client name, not an IPv4/IPv6 address:
       /[^\d.:]/               DUNNO
Viktor probably meant
     /[^\d\.:]/               DUNNO

No need to escape things in character classes.

Indeed. I am so used to escape everything;-p


so OP must have a typo or something wrong in his config.



Simpler to drop the DUNNO line and use a single expression that only matches IPs.

/^([0-9.:]+)$/  PREPEND X-Sender-IP: ${1}

--
Noel Jones

Reply via email to