No reason, but $rd takes you straight to the domain without having to do
the work of parsing it out of $ru, so it's just cleaner. It's the same
way that $rU gets you the user part without having to extract it with
string operations yourself.
There may be a minor performance argument, too, since $rd is
prepopulated internally anyway, but your approach requires running an
operation to extract.
On 01/11/2010 07:44 PM, Geoffrey Mina wrote:
Is there any reason I shouldn't use $ru as I am
doing now?
All seems to be working.
Thanks.
On 1/11/10, Alex Balashov<abalashov(a)evaristesys.com> wrote:
On 01/11/2010 12:55 PM, Geoffrey Mina wrote:
this was from a regular route[] block. I ended
up finding an old
thread which pointed me in the right direction.
I am currently using this to retrieve the destination IP POST dispatcher
lookup:
$var(destIP) = $(ru{s.select,1,:}{s.select,1,@});
Oh. THAT is what you wanted? Try $rd. :-)
--
Alex Balashov - Principal
Evariste Systems
Web :
http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
--
Alex Balashov - Principal
Evariste Systems
Web :
http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671