Forum Discussion
Simon_Knox_1115
Nimbostratus
Dec 14, 2005Any one see why this doesn't work?
when CLIENT_ACCEPTED {
set TEST [findclass [IP::remote_addr] $::DBConnections " "]
set SOURCE [IP::remote_addr]
if { [matchclass [IP::remote_addr] eq $::DBConnections] } {
set CHECK "Y...
Colin_Walker_12
Dec 14, 2005Historic F5 Account
The matchclass command is designed to match the entire string in the data group. If the string contains two parts seperated by a space as you described, then your matchclass is probably returning false.
Try something like this instead:
[matchclass $::DBConnections starts_with [IP::remote_addr]]
This would say "If any of the elements in the class start with the IP address..." instead of "If the IP address starts with any of the elements in the array...". This is a subtle difference, I know...but a difference nonetheless.
HTH,
-Colin
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects