Hello,

I just saw that 'except' can be set only once with "option forwardfor",
even if config does not warn in case it is defined multiple times :

listen test:80
    mode http
    option forwardfor except 10.0.0.1 header X-IP
    bind *:81
    server test 127.0.0.1:8080

=> works

listen test:80
    mode http
    option forwardfor except 10.0.0.1 except 10.0.0.2 header X-IP
    bind *:81
    server test 127.0.0.1:8080

=> works only for 10.0.0.2

Documentation on this point is not really precise I think. At least, the
configuration parser should warn when 'except' keyword is given more than
once (and say that only the last one will be taken into account).

Tell me what is expecting here, and I can provide a patch for documentation
at least (I'm not familiar enough with C to provide a patch for the config
parser).


Also, I would like to know if there is a way to provide multiple IP on
"except" (if all IPs are not on the same subnet).


Olivier

Reply via email to