recheck domain before adding to autohostlist

This commit is contained in:
bol-van
2023-10-26 16:27:52 +03:00
parent d0ce7846c4
commit 7ef7cbe554
24 changed files with 36 additions and 16 deletions

View File

@@ -76,6 +76,7 @@ hostfail_pool * HostFailPoolAdd(hostfail_pool **pp,const char *s,int fail_time)
size_t slen = strlen(s);
ADD_STR_POOL(hostfail_pool, pp, s, slen)
elem->expire = time(NULL) + fail_time;
elem->counter = 0;
return elem;
}
hostfail_pool *HostFailPoolFind(hostfail_pool *p,const char *s)