Mercurial > dnsbl
comparison src/dnsbl.cpp @ 282:e276180647ab stable-6-0-38
Activate check for unique ip connection limits
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 24 Dec 2013 08:17:47 -0800 |
parents | 2b77295fb9a7 |
children | 896b9393d3f0 |
comparison
equal
deleted
inserted
replaced
281:e11f99e10957 | 282:e276180647ab |
---|---|
1187 char msg[maxlen]; | 1187 char msg[maxlen]; |
1188 snprintf(msg, sizeof(msg), "connect for %s (%d %d addresses, %d %d limits)", uid, hourly, daily, h_limit, d_limit); | 1188 snprintf(msg, sizeof(msg), "connect for %s (%d %d addresses, %d %d limits)", uid, hourly, daily, h_limit, d_limit); |
1189 my_syslog(&priv, msg); | 1189 my_syslog(&priv, msg); |
1190 } | 1190 } |
1191 if ((hourly > h_limit) || (daily > d_limit)){ | 1191 if ((hourly > h_limit) || (daily > d_limit)){ |
1192 //smfi_setreply(ctx, (char*)"550", (char*)"5.7.1", (char*)"unique connection address limit exceeded"); | 1192 smfi_setreply(ctx, (char*)"550", (char*)"5.7.1", (char*)"unique connection ip address limit exceeded"); |
1193 //return SMFIS_REJECT; | 1193 return SMFIS_REJECT; |
1194 } | 1194 } |
1195 } | 1195 } |
1196 } | 1196 } |
1197 if (priv.client_name) { | 1197 if (priv.client_name) { |
1198 priv.client_name = strdup(priv.client_name); | 1198 priv.client_name = strdup(priv.client_name); |