diff --git a/changelogs/current.yaml b/changelogs/current.yaml index 375ce0ea2c0d..ad874a6d84eb 100644 --- a/changelogs/current.yaml +++ b/changelogs/current.yaml @@ -58,6 +58,9 @@ minor_behavior_changes: ``%UPSTREAM_REMOTE_PORT%`` and ``%UPSTREAM_REMOTE_ADDRESS_WITHOUT_PORT%`` access log format specifiers. This behavior can be reverted by setting the runtime guard ``envoy.reloadable_features.upstream_remote_address_use_connection`` to false. +- area: quic + change: | + When a quic connection socket is created, the socket's detected transport protocol will be set to "quic". bug_fixes: # *Changes expected to improve the state of the world and are unlikely to have negative effects* diff --git a/source/common/quic/envoy_quic_utils.cc b/source/common/quic/envoy_quic_utils.cc index 723126174c5a..433d29278b68 100644 --- a/source/common/quic/envoy_quic_utils.cc +++ b/source/common/quic/envoy_quic_utils.cc @@ -145,8 +145,9 @@ createConnectionSocket(const Network::Address::InstanceConstSharedPtr& peer_addr } auto connection_socket = std::make_unique( Network::Socket::Type::Datagram, local_addr, peer_addr, Network::SocketCreationOptions{}); + connection_socket->setDetectedTransportProtocol("quic"); if (!connection_socket->isOpen()) { - ENVOY_LOG_MISC(error, "Failed to create socket"); + ENVOY_LOG_MISC(error, "Failed to create quic socket"); return connection_socket; } connection_socket->addOptions(Network::SocketOptionFactory::buildIpPacketInfoOptions());