Browse Source

handle all loopback messages

pull/712/head
orignal 8 years ago
parent
commit
6bacf94a62
  1. 3
      Transports.cpp
  2. 2
      Transports.h

3
Transports.cpp

@ -260,7 +260,8 @@ namespace transport @@ -260,7 +260,8 @@ namespace transport
{
// we send it to ourself
for (auto& it: msgs)
i2p::HandleI2NPMessage (it);
m_LoopbackHandler.PutNextMessage (it);
m_LoopbackHandler.Flush ();
return;
}
if(RoutesRestricted() && ! IsRestrictedPeer(ident)) return;

2
Transports.h

@ -168,6 +168,8 @@ namespace transport @@ -168,6 +168,8 @@ namespace transport
std::vector<i2p::data::IdentHash> m_TrustedRouters;
mutable std::mutex m_TrustedRoutersMutex;
i2p::I2NPMessagesHandler m_LoopbackHandler;
public:
// for HTTP only

Loading…
Cancel
Save