Log an error when connect() fails in the NAT mode relay (#41033)
Blue committed
Jul 9, 2026 at 10:26 UTC
e47489e582a2af42c0d21db8a5dc0de2daa236ae
1 file changed
+1
src/linux/init/localhost.cpp
+1
@@ -301,6 +301,7 @@ void RunLocalHostRelay(sockaddr_vm hvSocketAddress, int listenSocket)
301
302
if (TEMP_FAILURE_RETRY(connect(tcpSocket.get(), socketAddress, socketAddressSize)) < 0)
303
{
304
+ LOG_ERROR("Failed to connect to port: {}, family: {}, errno: {}", message->Port, message->Family, errno);
305
return;
306
}
307