Forum Discussion
rickylev_247499
Nimbostratus
Mar 13, 2019Solved - Remove Route Domain from iRule output
Hello,
I have a test VIP that i've added an iRule to insert a custom header with the client IP, similarly to an X-Forwarded-For header (but with a custom name). The issue i'm running into is that the...
Mar 13, 2019
You can use the
getfield
command to strip out the route domain ID appended to the client IP:
when HTTP_REQUEST {
HTTP::header insert CLIENTIP [getfield [IP::client_addr] "%" 1]
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects