diff --git a/src/client.c b/src/client.c index e9e68a9..2d83384 100644 --- a/src/client.c +++ b/src/client.c @@ -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; diff --git a/src/necronda-server.c b/src/necronda-server.c index 208fd91..e99d92b 100644 --- a/src/necronda-server.c +++ b/src/necronda-server.c @@ -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());