IPV6_PMTUDISC_DO
This commit is contained in:
parent
e224ef45a4
commit
4cd95470d6
|
@ -844,8 +844,8 @@ int Worker::create_quic_server_socket(UpstreamAddr &faddr) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
# if defined(IPV6_MTU_DISCOVER) && defined(IP_PMTUDISC_DO)
|
# if defined(IPV6_MTU_DISCOVER) && defined(IPV6_PMTUDISC_DO)
|
||||||
int mtu_disc = IP_PMTUDISC_DO;
|
int mtu_disc = IPV6_PMTUDISC_DO;
|
||||||
if (setsockopt(fd, IPPROTO_IPV6, IPV6_MTU_DISCOVER, &mtu_disc,
|
if (setsockopt(fd, IPPROTO_IPV6, IPV6_MTU_DISCOVER, &mtu_disc,
|
||||||
static_cast<socklen_t>(sizeof(mtu_disc))) == -1) {
|
static_cast<socklen_t>(sizeof(mtu_disc))) == -1) {
|
||||||
auto error = errno;
|
auto error = errno;
|
||||||
|
|
Loading…
Reference in New Issue