Kalyan_Reddy_Da
Aug 12, 2011Nimbostratus
TMM crash because of the irule
Below irule is crashing my TMM can anyone please help
We have two values coming in " X-Forwarded-For" HTTP header and we want the first value.
I have written a below irule and when we assign this to VS and access the site, TMM crashing and rebooting F5 server.
when HTTP_REQUEST {
while { [HTTP::header exists X-Forwarded-For] } {
set VALUE1 [HTTP::header values X-Forwarded-For]
log local0. "VALUE1 : $VALUE1 "
set VALUE2 [findstr [HTTP::header "X-Forwarded-For"] " " 0 ","]
log local0. "VALUE2: $VALUE2"
}
}
Please suggest.