IPV6_PMTUDISC_DO

This commit is contained in:
Tatsuhiro Tsujikawa 2022-05-19 22:57:34 +09:00
parent e224ef45a4
commit 4cd95470d6

View File

@ -844,8 +844,8 @@ int Worker::create_quic_server_socket(UpstreamAddr &faddr) {
continue;
}
# if defined(IPV6_MTU_DISCOVER) && defined(IP_PMTUDISC_DO)
int mtu_disc = IP_PMTUDISC_DO;
# if defined(IPV6_MTU_DISCOVER) && defined(IPV6_PMTUDISC_DO)
int mtu_disc = IPV6_PMTUDISC_DO;
if (setsockopt(fd, IPPROTO_IPV6, IPV6_MTU_DISCOVER, &mtu_disc,
static_cast<socklen_t>(sizeof(mtu_disc))) == -1) {
auto error = errno;