Enable IPV6 requests support in iptogeo server

This commit is contained in:
Grégory Soutadé 2016-02-24 19:17:40 +01:00
parent b05329f9be
commit 087082ef08

View File

@ -99,7 +99,7 @@ static int check_request(request_t* req)
req->ip_type != REQ_IPV6) req->ip_type != REQ_IPV6)
return REQ_ERR_BAD_IP_VERSION; return REQ_ERR_BAD_IP_VERSION;
if (req->ip_type != REQ_IPV4) if (req->ip_type != REQ_IPV4 && req->ip_type != REQ_IPV6)
return REQ_ERR_UNSUPPORTED_IP_VERSION; return REQ_ERR_UNSUPPORTED_IP_VERSION;
if (req->req != REQ_REQ) if (req->req != REQ_REQ)