X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FFilter.pm;h=226aff4a22987f820934fcbfef9b11f7f4b124dc;hb=9d95f3b1af59bbb25d38cb2ff26f431226547d45;hp=7242c63660669ae56267343240d33a19de66417e;hpb=8abbe6231dec8dc08513be0ef4d2d59ac918986f;p=spider.git diff --git a/perl/Filter.pm b/perl/Filter.pm index 7242c636..226aff4a 100644 --- a/perl/Filter.pm +++ b/perl/Filter.pm @@ -143,12 +143,15 @@ sub getfilkeys # The filter returns 0 if an entry is matched by any reject rule and also if any # accept rule fails otherwise it returns 1 # -# Either set of rules may be missing meaning an implicit 'ok' +# Either set of rules may be missing meaning an implicit 'opposite' ie if it +# a reject then ok else if an accept then not ok. +# +# you can set a default with either an accept/xxxx all or reject/xxxx all # # Unlike the old system, this is kept as a hash of hashes so that you can # easily change them by program. # -# You can have a [any] number of 'filters', they are tried in random order until +# You can have 10 filter lines (0->9), they are tried in order until # one matches # # There is a parser that takes a Filter::Cmd object which describes all the possible