Forum Discussion
Thomas_Schaefer
May 08, 2009Nimbostratus
Does anyone have an idea why this would not work with 209.162.186.60 pulled from a string? I am executing this statement:
set a "209.162.186.60"
log local0. "catch $a => [catch {IP::addr $a mask 255.255.255.255} ]"
log local0. "catch $hostname => [catch {IP::addr $hostname mask 255.255.255.255} ]"
log local0. "hostname = \[$hostname>\]"
$hostname was pulled from a header using set hostname [HTTP::header "X-HOSTNAME"].
This is the result of the log:
Rule OutboundSSLRouter HTTP_REQUEST: catch 209.162.186.60 = 1
Rule OutboundSSLRouter HTTP_REQUEST: catch 209.162.186.60 = 0
Rule OutboundSSLRouter HTTP_REQUEST: catch 209.162.186.60 = 1
Is there anything special about a variable pulled from HTTP::header?