Browse Source

allow NTCP2 only transports

pull/1221/head
orignal 6 years ago
parent
commit
a2c41c9e36
  1. 5
      daemon/Daemon.cpp
  2. 1
      libi2pd/Transports.h

5
daemon/Daemon.cpp

@ -289,9 +289,10 @@ namespace i2p @@ -289,9 +289,10 @@ namespace i2p
if(!ntcp) LogPrint(eLogInfo, "Daemon: ntcp disabled");
i2p::transport::transports.Start(ntcp, ssu);
if (i2p::transport::transports.IsBoundNTCP() || i2p::transport::transports.IsBoundSSU()) {
if (i2p::transport::transports.IsBoundNTCP() || i2p::transport::transports.IsBoundSSU() || i2p::transport::transports.IsBoundNTCP2())
LogPrint(eLogInfo, "Daemon: Transports started");
} else {
else
{
LogPrint(eLogError, "Daemon: failed to start Transports");
/** shut down netdb right away */
i2p::transport::transports.Stop();

1
libi2pd/Transports.h

@ -81,6 +81,7 @@ namespace transport @@ -81,6 +81,7 @@ namespace transport
bool IsBoundNTCP() const { return m_NTCPServer != nullptr; }
bool IsBoundSSU() const { return m_SSUServer != nullptr; }
bool IsBoundNTCP2() const { return m_NTCP2Server != nullptr; }
bool IsOnline() const { return m_IsOnline; };
void SetOnline (bool online) { m_IsOnline = online; };

Loading…
Cancel
Save