Update nat option: if nat=false, skip reachability testing

This commit is contained in:
l-n-s 2016-10-28 15:57:18 -04:00
parent 578083df3e
commit 4f4748b8df
2 changed files with 5 additions and 12 deletions

View file

@ -4,6 +4,7 @@
#include "I2NPProtocol.h"
#include "NetDb.h"
#include "Transports.h"
#include "Config.h"
using namespace i2p::data;
@ -496,9 +497,9 @@ namespace transport
{
if (m_SSUServer)
{
#ifndef MESHNET
i2p::context.SetStatus (eRouterStatusTesting);
#endif
bool nat; i2p::config::GetOption("nat", nat);
if (nat)
i2p::context.SetStatus (eRouterStatusTesting);
for (int i = 0; i < 5; i++)
{