server cleanup

* restrict reading of config files to times when the server is empty
* collect entropy
* remove hint how to convert pre-1.0 blacklists
This commit is contained in:
ac-stef
2017-06-27 15:15:21 +02:00
parent c8c310886a
commit ac5229dfba
5 changed files with 12 additions and 14 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ int pingpckserver(void *data) // fetch updates.txt from a media server, measure
u.set(s->host);
s->resolved = h.set_host(u.domain) ? 1 : 0;
SDL_mutexP(pckpinglog_lock);
cvecprintf(pckping_log, "lresolving hostname %s %s (%s)\n", u.domain, s->resolved ? "succeeded" : "failed", iptoa(ntohl(h.ip.host)));
cvecprintf(pckping_log, "lresolving hostname %s %s (%s)\n", u.domain, s->resolved ? "succeeded" : "failed", iptoa(ENET_NET_TO_HOST_32(h.ip.host)));
SDL_mutexV(pckpinglog_lock);
if(s->resolved)
{