summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 28113e6)
raw | patch | inline | side by side (parent: 28113e6)
author | Florian Forster <octo@huhu.verplant.org> | |
Wed, 24 Mar 2010 15:58:36 +0000 (16:58 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 24 Mar 2010 16:00:20 +0000 (17:00 +0100) |
src/memcachec.c | patch | blob | history |
diff --git a/src/memcachec.c b/src/memcachec.c
index 75e642702be38d2a8d5c058249a050eab243185a..d066501cdcba73afb56363dae167b9dd78353e10 100644 (file)
--- a/src/memcachec.c
+++ b/src/memcachec.c
struct web_match_s /* {{{ */
{
char *regex;
+ char *exclude_regex;
int dstype;
char *type;
char *instance;
if (strcasecmp ("Regex", child->key) == 0)
status = cmc_config_add_string ("Regex", &match->regex, child);
+ else if (strcasecmp ("ExcludeRegex", child->key) == 0)
+ status = cmc_config_add_string ("ExcludeRegex", &match->exclude_regex, child);
else if (strcasecmp ("DSType", child->key) == 0)
status = cmc_config_add_match_dstype (&match->dstype, child);
else if (strcasecmp ("Type", child->key) == 0)
if (status != 0)
return (status);
- match->match = match_create_simple (match->regex, NULL, match->dstype);
+ match->match = match_create_simple (match->regex, match->exclude_regex,
+ match->dstype);
if (match->match == NULL)
{
ERROR ("memcachec plugin: tail_match_add_match_simple failed.");