diff --git a/src/server.c b/src/server.c index 9e39764..a22ae61 100644 --- a/src/server.c +++ b/src/server.c @@ -99,7 +99,7 @@ static int check_request(request_t* req) req->ip_type != REQ_IPV6) 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; if (req->req != REQ_REQ)