Forum Discussion
Kevin_Stewart
Mar 25, 2014Employee
If I had to guess, it's because you're trying to perform replace and remove operations on the same header. Try this:
when HTTP_REQUEST {
if { [HTTP::header exists True-Client-IP] } {
HTTP::header replace X-Forwarded-For [HTTP::header True-Client-IP]
} else {
HTTP::header replace X-Forwarded-For [IP::client_addr]
}
}