Outsource geoip

This commit is contained in:
2022-12-13 23:41:29 +01:00
parent b422b37806
commit 8e83d6aa5f
7 changed files with 156 additions and 102 deletions

View File

@ -20,13 +20,13 @@ typedef struct {
char *s_addr;
char cc[3];
char host[256];
char geoip[GEOIP_MAX_SIZE + 1];
char geoip[GEOIP_MAX_JSON_SIZE + 1];
char _c_addr[INET6_ADDRSTRLEN + 1];
char _s_addr[INET6_ADDRSTRLEN + 1];
} client_ctx_t;
host_config *get_host_config(const char *host);
int client_handler(sock *client, unsigned long client_num, struct sockaddr_in6 *client_addr);
int client_handler(sock *client, unsigned long client_num);
#endif //SESIMOS_CLIENT_H