Mercurial > dnsbl
diff src/context.h @ 272:a99b6c1f5f67
Code cleanup, increase minimum hostname length for uribl checking
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 09 Sep 2013 19:30:21 -0700 |
parents | f92f24950bd3 |
children | 368572c57013 |
line wrap: on
line diff
--- a/src/context.h Mon Sep 09 15:20:38 2013 -0700 +++ b/src/context.h Mon Sep 09 19:30:21 2013 -0700 @@ -228,7 +228,9 @@ void set_uribl_suffix(const char *suffix) {uribl_suffix = suffix; }; void set_uribl_message(const char *message) {uribl_message = message; }; void add_ignore(const char *host) {content_host_ignore.insert(host);}; - void add_tld(const char *tld); + void add_tld(const char *tld) {content_tlds.insert(tld); }; + void add_tldwild(const char *tld) {content_tldwilds.insert(tld); }; + void add_tldnot(const char *tld) {content_tldnots.insert(tld); }; void set_host_limit(int limit) {host_limit = limit; }; void set_host_message(const char *message) {host_limit_message = message;};