mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 12:17:49 +02:00
Don't do peertest if nat=false
This commit is contained in:
parent
0b560fdd27
commit
9de617172f
2 changed files with 15 additions and 6 deletions
|
@ -84,6 +84,9 @@ namespace transport
|
|||
bool IsOnline() const { return m_IsOnline; };
|
||||
void SetOnline (bool online) { m_IsOnline = online; };
|
||||
|
||||
bool IsNAT() const { return m_IsNAT; };
|
||||
void SetNAT (bool nat) { m_IsNAT = nat; };
|
||||
|
||||
boost::asio::io_service& GetService () { return *m_Service; };
|
||||
std::shared_ptr<i2p::crypto::DHKeys> GetNextDHKeysPair ();
|
||||
void ReuseDHKeysPair (std::shared_ptr<i2p::crypto::DHKeys> pair);
|
||||
|
@ -146,7 +149,7 @@ namespace transport
|
|||
|
||||
private:
|
||||
|
||||
bool m_IsOnline, m_IsRunning;
|
||||
bool m_IsOnline, m_IsRunning, m_IsNAT;
|
||||
std::thread * m_Thread;
|
||||
boost::asio::io_service * m_Service;
|
||||
boost::asio::io_service::work * m_Work;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue