mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
set router status to uknown if peer test msg 5 came from recently connected peer
This commit is contained in:
parent
816771dd00
commit
5cd0248494
2 changed files with 6 additions and 2 deletions
|
@ -397,6 +397,7 @@ namespace transport
|
|||
|
||||
uint8_t GetMsgNumReceived () const { return m_MsgNumReceived; }
|
||||
bool IsConnectedRecently () const { return m_IsConnectedRecently; }
|
||||
void SetStatusChanged () { m_IsStatusChanged = true; }
|
||||
bool ProcessPeerTest (uint8_t * buf, size_t len) override;
|
||||
|
||||
private:
|
||||
|
@ -406,7 +407,7 @@ namespace transport
|
|||
private:
|
||||
|
||||
uint8_t m_MsgNumReceived;
|
||||
bool m_IsConnectedRecently;
|
||||
bool m_IsConnectedRecently, m_IsStatusChanged;
|
||||
};
|
||||
|
||||
inline uint64_t CreateHeaderMask (const uint8_t * kh, const uint8_t * nonce)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue