9.x to 4.x conversion

----------------

HTTP::redirect http://10.50.10.[getfield[IP::local_addr] . 4][HTTP::uri]

------------------

How do i translate the above 9.x rule to a 4.x rule?

This might be a little challenging, as you’re looking to combine multiple strings to get the redirect location. Let me dig into the 4.x docs a little to try and refresh my memory on how that would work.

Colin

I was dredging through the forums posts and read somewhere that ‘getfield’ function cannot be used to split up IP addresses because the local_addr variable in 4.x is in binary and not string format…hence this type of IP address mangling is not possible in 4.x.

If you find otherwise would be glad to know.

Thanks.

I’m guessing this is the post you found (Click here). It doesn’t look very promising to be able to select the last octet of the server IP as a component of the redirect.

Aaron