iRule to change Payload

Hi All, i’m having a problem with an iRule that is not working for me! i would appreciate your help to check it and advice if there is any mistakes in it.

The issue is, that when the Node respond to the request, the payload contains its IP! so the client cant understand it, i need to change that to match the VS IP

iRule

when HTTP_RESPONSE_DATA { if { [HTTP::payload] contains “Node-1”} { set newPayload [string map -nocase {“Node-1” “local.vsip.com”} [HTTP::payload]] HTTP::payload $newPayload } HTTP::release }

Tariq, have you thought of using a Stream Profile instead of an irule? See Overview of the Stream Profile

THanks a lot Nathan, i will check it, appreciated