mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
always send STREAM STATUS reply to STREAM FORWARD
This commit is contained in:
parent
e41bbcb2bb
commit
cc0367b079
@ -838,6 +838,7 @@ namespace http {
|
|||||||
case i2p::client::eSAMSocketTypeSession : s << "session"; break;
|
case i2p::client::eSAMSocketTypeSession : s << "session"; break;
|
||||||
case i2p::client::eSAMSocketTypeStream : s << "stream"; break;
|
case i2p::client::eSAMSocketTypeStream : s << "stream"; break;
|
||||||
case i2p::client::eSAMSocketTypeAcceptor : s << "acceptor"; break;
|
case i2p::client::eSAMSocketTypeAcceptor : s << "acceptor"; break;
|
||||||
|
case i2p::client::eSAMSocketTypeForward : s << "forward"; break;
|
||||||
default: s << "unknown"; break;
|
default: s << "unknown"; break;
|
||||||
}
|
}
|
||||||
s << " [" << it->GetSocket ().remote_endpoint() << "]";
|
s << " [" << it->GetSocket ().remote_endpoint() << "]";
|
||||||
|
@ -199,7 +199,7 @@ namespace client
|
|||||||
{
|
{
|
||||||
LogPrint (eLogDebug, "SAMSocket::SendMessageReply, close=",close?"true":"false", " reason: ", msg);
|
LogPrint (eLogDebug, "SAMSocket::SendMessageReply, close=",close?"true":"false", " reason: ", msg);
|
||||||
|
|
||||||
if (!m_IsSilent)
|
if (!m_IsSilent || m_SocketType == eSAMSocketTypeForward)
|
||||||
boost::asio::async_write (m_Socket, boost::asio::buffer (msg, len), boost::asio::transfer_all (),
|
boost::asio::async_write (m_Socket, boost::asio::buffer (msg, len), boost::asio::transfer_all (),
|
||||||
std::bind(&SAMSocket::HandleMessageReplySent, shared_from_this (),
|
std::bind(&SAMSocket::HandleMessageReplySent, shared_from_this (),
|
||||||
std::placeholders::_1, std::placeholders::_2, close));
|
std::placeholders::_1, std::placeholders::_2, close));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user