Browse Source

[daemon] check for SSU2 transport at start

Signed-off-by: r4sas <r4sas@i2pmail.org>
pull/1774/head
R4SAS 3 years ago
parent
commit
a5a35b1fa6
  1. 2
      daemon/Daemon.cpp
  2. 1
      libi2pd/Transports.h

2
daemon/Daemon.cpp

@ -410,7 +410,7 @@ namespace util @@ -410,7 +410,7 @@ namespace util
i2p::transport::transports.SetCheckReserved(checkInReserved);
i2p::transport::transports.Start(ntcp2, ssu, ssu2);
if (i2p::transport::transports.IsBoundSSU() || i2p::transport::transports.IsBoundNTCP2())
if (i2p::transport::transports.IsBoundSSU() || i2p::transport::transports.IsBoundSSU2() || i2p::transport::transports.IsBoundNTCP2())
LogPrint(eLogInfo, "Daemon: Transports started");
else
{

1
libi2pd/Transports.h

@ -93,6 +93,7 @@ namespace transport @@ -93,6 +93,7 @@ namespace transport
void Stop ();
bool IsBoundSSU() const { return m_SSUServer != nullptr; }
bool IsBoundSSU2() const { return m_SSU2Server != nullptr; }
bool IsBoundNTCP2() const { return m_NTCP2Server != nullptr; }
bool IsOnline() const { return m_IsOnline; };

Loading…
Cancel
Save