Support G-line lifetimes.
[srvx.git] / src / mod-blacklist.c
index 0e4b58b0d3233758d3eac04f0d63648805f7a316..e202f739302e9de2a8c4a90fb338eb406d762520 100644 (file)
@@ -155,7 +155,7 @@ dnsbl_hit(struct sar_request *req, struct dns_header *hdr, struct dns_rr *rr, un
             target[0] = '*';
             target[1] = '@';
             strcpy(target + 2, data->client_ip);
-            gline_add(self->name, target, zone->duration, reason, now, now, 1);
+            gline_add(self->name, target, zone->duration, reason, now, now, 0, 1);
         }
     }
     free(txt);
@@ -194,7 +194,7 @@ blacklist_check_user(struct userNode *user)
         target[1] = '@';
         strcpy(target + 2, host);
         /* We do not prepend AUTO here so it can be done in the blacklist file. */
-        gline_add(self->name, target, conf.gline_duration, reason, now, now, 1);
+        gline_add(self->name, target, conf.gline_duration, reason, now, now, 0, 1);
     }
 
     /* Figure out the base part of a DNS blacklist hostname. */