On Wed, 2009-01-28 at 23:29 +0100, mouss wrote:
[...]
> you want to lookup "spammer.geocities.com" instead. for this, the domain
> "geocities.com" must be included in a list of such "exceptional" domains
> (domains for which 3 labels are kept instead of just 2. [The "2" in
> util_rb_2tld is because the TLD is not counted]).

Hmm. Actually, the "2" translates to "the TLD consists of 2 labels",
including and counting the real TLD. Thus, the BL lookup needs to be
done for 2+1, since the logical TLD is an exception to the general .com
TLD. ;)

  guenther  -- nitpicker having a beer


-- 
char *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

Reply via email to