Changeset df5d2f09411fc779d39bc1fa5f3ff24ad0e5cff4

Show
Ignore:
Timestamp:
02/01/10 15:16:29 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1265037389 +0000
git-parent:

[48ad8c044537412e7ae27f5de10d9f427ffc295e]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1265037389 +0000
Message:

fixes #249

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_filters.c

    rcad4382 rdf5d2f0  
    123123    char buffer[256]; 
    124124    if(!noit_conf_get_stringbuf(rules[j], "@type", buffer, sizeof(buffer)) || 
    125        (strcmp(buffer, "accept") && strcmp(buffer, "deny"))) { 
    126       noitL(noit_error, "rule must have type 'accept' or 'deny'\n"); 
     125       (strcmp(buffer, "accept") && strcmp(buffer, "allow") && strcmp(buffer, "deny"))) { 
     126      noitL(noit_error, "rule must have type 'accept' or 'allow' or 'deny'\n"); 
    127127      continue; 
    128128    } 
    129129    noitL(noit_debug, "Prepending %s into %s\n", buffer, set->name); 
    130130    rule = calloc(1, sizeof(*rule)); 
    131     rule->type = (!strcmp(buffer, "accept")) ? 
     131    rule->type = (!strcmp(buffer, "accept") || !strcmp(buffer, "allow")) ? 
    132132                   NOIT_FILTER_ACCEPT : NOIT_FILTER_DENY; 
    133133