mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-31 04:44:13 +00:00
fix incorrect chars in variable
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
85e9da82b0
commit
18bb4a71c2
@ -131,7 +131,7 @@ namespace transport
|
|||||||
Transports transports;
|
Transports transports;
|
||||||
|
|
||||||
Transports::Transports ():
|
Transports::Transports ():
|
||||||
m_IsOnline (true), m_IsRunning (false), m_IsNAT (true), m_СheckReserved(true), m_Thread (nullptr),
|
m_IsOnline (true), m_IsRunning (false), m_IsNAT (true), m_CheckReserved(true), m_Thread (nullptr),
|
||||||
m_Service (nullptr), m_Work (nullptr), m_PeerCleanupTimer (nullptr), m_PeerTestTimer (nullptr),
|
m_Service (nullptr), m_Work (nullptr), m_PeerCleanupTimer (nullptr), m_PeerTestTimer (nullptr),
|
||||||
m_SSUServer (nullptr), m_NTCP2Server (nullptr),
|
m_SSUServer (nullptr), m_NTCP2Server (nullptr),
|
||||||
m_DHKeysPairSupplier (5), m_X25519KeysPairSupplier (5), // 5 pre-generated keys
|
m_DHKeysPairSupplier (5), m_X25519KeysPairSupplier (5), // 5 pre-generated keys
|
||||||
@ -393,7 +393,7 @@ namespace transport
|
|||||||
{
|
{
|
||||||
// NTCP2 have priority over NTCP
|
// NTCP2 have priority over NTCP
|
||||||
auto address = peer.router->GetNTCP2Address (true, !context.SupportsV6 ()); // published only
|
auto address = peer.router->GetNTCP2Address (true, !context.SupportsV6 ()); // published only
|
||||||
if (address && !peer.router->IsUnreachable () && (!m_СheckReserved || !i2p::util::net::IsInReservedRange(address->host)))
|
if (address && !peer.router->IsUnreachable () && (!m_CheckReserved || !i2p::util::net::IsInReservedRange(address->host)))
|
||||||
{
|
{
|
||||||
auto s = std::make_shared<NTCP2Session> (*m_NTCP2Server, peer.router);
|
auto s = std::make_shared<NTCP2Session> (*m_NTCP2Server, peer.router);
|
||||||
|
|
||||||
@ -419,7 +419,7 @@ namespace transport
|
|||||||
if (m_SSUServer && peer.router->IsSSU (!context.SupportsV6 ()))
|
if (m_SSUServer && peer.router->IsSSU (!context.SupportsV6 ()))
|
||||||
{
|
{
|
||||||
auto address = peer.router->GetSSUAddress (!context.SupportsV6 ());
|
auto address = peer.router->GetSSUAddress (!context.SupportsV6 ());
|
||||||
if (!m_СheckReserved || !i2p::util::net::IsInReservedRange(address->host))
|
if (!m_CheckReserved || !i2p::util::net::IsInReservedRange(address->host))
|
||||||
{
|
{
|
||||||
m_SSUServer->CreateSession (peer.router, address->host, address->port);
|
m_SSUServer->CreateSession (peer.router, address->host, address->port);
|
||||||
return true;
|
return true;
|
||||||
|
@ -136,8 +136,8 @@ namespace transport
|
|||||||
|
|
||||||
void PeerTest ();
|
void PeerTest ();
|
||||||
|
|
||||||
void SetCheckReserved (bool check) { m_СheckReserved = check; };
|
void SetCheckReserved (bool check) { m_CheckReserved = check; };
|
||||||
bool IsCheckReserved () { return m_СheckReserved; };
|
bool IsCheckReserved () { return m_CheckReserved; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ namespace transport
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
volatile bool m_IsOnline;
|
volatile bool m_IsOnline;
|
||||||
bool m_IsRunning, m_IsNAT, m_СheckReserved;
|
bool m_IsRunning, m_IsNAT, m_CheckReserved;
|
||||||
std::thread * m_Thread;
|
std::thread * m_Thread;
|
||||||
boost::asio::io_service * m_Service;
|
boost::asio::io_service * m_Service;
|
||||||
boost::asio::io_service::work * m_Work;
|
boost::asio::io_service::work * m_Work;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user