Mike_Maher
Mar 16, 2011Nimbostratus
Insert IPv6 address into header
I have a fairly simple iRule that inserts the client IP address into the header see below
when HTTP_REQUEST {
HTTP::header insert x-remote-host [IP::client_addr]
HTTP::header insert x-user-agent [HTTP::header User-Agent]
}
The problem is that I know the IP::client_addr only works for v4 addresses, and I want to setup the rule so that it will also insert an IP v6 address if that is where the client is coming from. Any help is appreciated.