Add geoip TODOs
This commit is contained in:
		@@ -281,6 +281,9 @@ int client_connection_handler(sock *client) {
 | 
				
			|||||||
    char buf[16];
 | 
					    char buf[16];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    clock_gettime(CLOCK_MONOTONIC, &begin);
 | 
					    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");
 | 
					    print("Connection accepted from %s (%s) [%s]", client_addr_str, client_addr_str, "N/A");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    client_timeout.tv_sec = CLIENT_TIMEOUT;
 | 
					    client_timeout.tv_sec = CLIENT_TIMEOUT;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -264,6 +264,9 @@ int main(int argc, const char *argv[]) {
 | 
				
			|||||||
    if (cache_init() != 0) {
 | 
					    if (cache_init() != 0) {
 | 
				
			||||||
        return 1;
 | 
					        return 1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // TODO init geoip database
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    openssl_init();
 | 
					    openssl_init();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    client.ctx = SSL_CTX_new(TLS_server_method());
 | 
					    client.ctx = SSL_CTX_new(TLS_server_method());
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user