I’m wondering if I can reference a class with a variable?
Will the class reference below evaluate to $::myclass?
when HTTP_REQUEST {
set uri_discards myclass
if {[matchclass [HTTP::uri] starts_with $::{$uri_discards}]}{
discard
}
}
I also noticed that I don’t get any errors loading up this rule, even though neither class “myclass” nor “uri_discards” exists, so I’m wondering how much classname verification I might need to perform using variables in this manner?
so using eval against the findclass command results validates the cookie value for its intended use - finding the related pool or branching elsewhere if not found:
I take it there’s no graceful way to do it without setting the 2 variables?