mirror of
https://github.com/moparisthebest/curl
synced 2024-11-04 08:35:05 -05: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:
|
||||
pktlen = NGTCP2_MAX_PKTLEN_IPV4;
|
||||
break;
|
||||
#ifdef ENABLE_IPV6
|
||||
case AF_INET6:
|
||||
pktlen = NGTCP2_MAX_PKTLEN_IPV6;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
assert(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user