mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
Update nat option: if nat=false, skip reachability testing
This commit is contained in:
parent
578083df3e
commit
4f4748b8df
2 changed files with 5 additions and 12 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue