Add geoip TODOs

This commit is contained in:
2020-12-22 20:32:00 +01:00
parent 7e2c9bea6d
commit 8cccf48826
2 changed files with 6 additions and 0 deletions

View File

@ -281,6 +281,9 @@ int client_connection_handler(sock *client) {
char buf[16];
clock_gettime(CLOCK_MONOTONIC, &begin);
// TODO get geoip data for ip address
print("Connection accepted from %s (%s) [%s]", client_addr_str, client_addr_str, "N/A");
client_timeout.tv_sec = CLIENT_TIMEOUT;

View File

@ -264,6 +264,9 @@ int main(int argc, const char *argv[]) {
if (cache_init() != 0) {
return 1;
}
// TODO init geoip database
openssl_init();
client.ctx = SSL_CTX_new(TLS_server_method());