Forum Discussion
Christopher_Hyl
May 05, 2011Nimbostratus
Actually, this one would be better as it grabs the pool that's assigned to the VIP and I can now be used across multiple VIPs with a single irule. This should help users like me who use CDNs like akamai or limelight.
when HTTP_REQUEST {
set default_pool [LB::server pool]
if {[HTTP::header exists "True-Client-IP"]}{
set tcip_header [HTTP::header "True-Client-IP"]
} else { set tcip_header [IP::remote_addr] }
if {[active_members $default_pool]}{
persist uie $tcip_header 43200
return
}
}