comparison src/dnsbl.cpp @ 131:df355d117199

uribl lookups fully qualified; allow two component host names
author carl
date Tue, 01 Aug 2006 10:44:55 -0700
parents c5cd1261394d
children ae9daf43d8eb
comparison
equal deleted inserted replaced
130:e316f6fd9c39 131:df355d117199
676 *top = '\0'; 676 *top = '\0';
677 char *x = strrchr(hostname, '.'); 677 char *x = strrchr(hostname, '.');
678 if (x) hostname = x+1; 678 if (x) hostname = x+1;
679 *top = '.'; 679 *top = '.';
680 } 680 }
681 snprintf(buf, sizeof(buf), "%s.%s", hostname, priv.uribl_suffix); 681 snprintf(buf, sizeof(buf), "%s.%s.", hostname, priv.uribl_suffix);
682 if (dns_interface(priv, buf, false, NULL)) { 682 if (dns_interface(priv, buf, false, NULL)) {
683 if (debug_syslog > 2) { 683 if (debug_syslog > 2) {
684 char tmp[maxlen]; 684 char tmp[maxlen];
685 snprintf(tmp, sizeof(tmp), "found %s on %s", hostname, priv.uribl_suffix); 685 snprintf(tmp, sizeof(tmp), "found %s on %s", hostname, priv.uribl_suffix);
686 my_syslog(tmp); 686 my_syslog(tmp);