Don't do peertest if nat=false

This commit is contained in:
Darknet Villain 2017-08-09 07:52:29 -04:00
parent 0b560fdd27
commit 9de617172f
2 changed files with 15 additions and 6 deletions

View file

@ -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;