mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Refuse dulicated incoming pending session from same IP
This commit is contained in:
parent
f401ccf5dd
commit
edb7a0e23c
2 changed files with 51 additions and 22 deletions
|
@ -135,7 +135,7 @@ namespace transport
|
|||
void Terminate ();
|
||||
void TerminateByTimeout ();
|
||||
void Done () override;
|
||||
void Close () { m_Socket.close (); }; // for accept
|
||||
void Close (); // for accept
|
||||
void DeleteNextReceiveBuffer (uint64_t ts);
|
||||
|
||||
boost::asio::ip::tcp::socket& GetSocket () { return m_Socket; };
|
||||
|
@ -277,7 +277,7 @@ namespace transport
|
|||
boost::asio::deadline_timer m_TerminationTimer;
|
||||
std::unique_ptr<boost::asio::ip::tcp::acceptor> m_NTCP2Acceptor, m_NTCP2V6Acceptor;
|
||||
std::map<i2p::data::IdentHash, std::shared_ptr<NTCP2Session> > m_NTCP2Sessions;
|
||||
std::list<std::shared_ptr<NTCP2Session> > m_PendingIncomingSessions;
|
||||
std::map<boost::asio::ip::address, std::shared_ptr<NTCP2Session> > m_PendingIncomingSessions;
|
||||
|
||||
ProxyType m_ProxyType;
|
||||
std::string m_ProxyAddress, m_ProxyAuthorization;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue