Enable IPV6 requests support in iptogeo server
This commit is contained in:
parent
b05329f9be
commit
087082ef08
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user