mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
[transports] validate IP when trying connect to remote peer for being in reserved IP range
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
@@ -136,6 +136,9 @@ namespace transport
|
||||
|
||||
void PeerTest ();
|
||||
|
||||
void SetCheckReserved (bool check) { m_СheckReserved = check; };
|
||||
bool IsCheckReserved () { return m_СheckReserved; };
|
||||
|
||||
private:
|
||||
|
||||
void Run ();
|
||||
@@ -152,7 +155,7 @@ namespace transport
|
||||
private:
|
||||
|
||||
volatile bool m_IsOnline;
|
||||
bool m_IsRunning, m_IsNAT;
|
||||
bool m_IsRunning, m_IsNAT, m_СheckReserved;
|
||||
std::thread * m_Thread;
|
||||
boost::asio::io_service * m_Service;
|
||||
boost::asio::io_service::work * m_Work;
|
||||
|
||||
Reference in New Issue
Block a user