mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
ngtcp2: fixed to only use AF_INET6 when ENABLE_IPV6
This commit is contained in:
parent
9c27386ef0
commit
defe4c08f0
@ -1601,9 +1601,11 @@ static CURLcode ng_flush_egress(struct connectdata *conn, int sockfd,
|
|||||||
case AF_INET:
|
case AF_INET:
|
||||||
pktlen = NGTCP2_MAX_PKTLEN_IPV4;
|
pktlen = NGTCP2_MAX_PKTLEN_IPV4;
|
||||||
break;
|
break;
|
||||||
|
#ifdef ENABLE_IPV6
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
pktlen = NGTCP2_MAX_PKTLEN_IPV6;
|
pktlen = NGTCP2_MAX_PKTLEN_IPV6;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
assert(0);
|
assert(0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user