Forum Discussion
JamesS_40157
Nimbostratus
Jun 26, 2013TCL error "bad option" with minus character
Hi,
We have an iRule that tries to match user agents against a datagroup - this has been working fine for a while however recently we've seen a bunch of TCL errors show up, that I believe are du...
hoolio
Cirrostratus
Jun 26, 2013Hi James,
You can use -- to terminate the options for the class command:
class match -- [string tolower [HTTP::header "User-Agent"]] contains mobileUserAgents
https://devcentral.f5.com/wiki/iRules.class.ashx
-- Terminates option processing (useful if the or begins with a hyphen).
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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