mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:54:01 +01:00
handle all loopback messages
This commit is contained in:
parent
336cd60920
commit
6bacf94a62
|
@ -260,7 +260,8 @@ namespace transport
|
||||||
{
|
{
|
||||||
// we send it to ourself
|
// we send it to ourself
|
||||||
for (auto& it: msgs)
|
for (auto& it: msgs)
|
||||||
i2p::HandleI2NPMessage (it);
|
m_LoopbackHandler.PutNextMessage (it);
|
||||||
|
m_LoopbackHandler.Flush ();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(RoutesRestricted() && ! IsRestrictedPeer(ident)) return;
|
if(RoutesRestricted() && ! IsRestrictedPeer(ident)) return;
|
||||||
|
|
14
Transports.h
14
Transports.h
|
@ -160,13 +160,15 @@ namespace transport
|
||||||
uint64_t m_LastInBandwidthUpdateBytes, m_LastOutBandwidthUpdateBytes;
|
uint64_t m_LastInBandwidthUpdateBytes, m_LastOutBandwidthUpdateBytes;
|
||||||
uint64_t m_LastBandwidthUpdateTime;
|
uint64_t m_LastBandwidthUpdateTime;
|
||||||
|
|
||||||
/** which router families to trust for first hops */
|
/** which router families to trust for first hops */
|
||||||
std::vector<std::string> m_TrustedFamilies;
|
std::vector<std::string> m_TrustedFamilies;
|
||||||
mutable std::mutex m_FamilyMutex;
|
mutable std::mutex m_FamilyMutex;
|
||||||
|
|
||||||
/** which routers for first hop to trust */
|
/** which routers for first hop to trust */
|
||||||
std::vector<i2p::data::IdentHash> m_TrustedRouters;
|
std::vector<i2p::data::IdentHash> m_TrustedRouters;
|
||||||
mutable std::mutex m_TrustedRoutersMutex;
|
mutable std::mutex m_TrustedRoutersMutex;
|
||||||
|
|
||||||
|
i2p::I2NPMessagesHandler m_LoopbackHandler;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue