mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
enable SSU
This commit is contained in:
parent
b9031c331d
commit
adb6f284e8
3 changed files with 6 additions and 7 deletions
|
@ -39,23 +39,20 @@ namespace i2p
|
|||
auto conn = new i2p::ntcp::NTCPServerConnection (m_Service);
|
||||
m_NTCPAcceptor->async_accept(conn->GetSocket (), boost::bind (&Transports::HandleAccept, this,
|
||||
conn, boost::asio::placeholders::error));
|
||||
// temporary always run SSU server
|
||||
// TODO: uncomment following lines later
|
||||
/*}
|
||||
}
|
||||
else if (address.transportStyle == RouterInfo::eTransportSSU)
|
||||
{*/
|
||||
{
|
||||
if (!m_SSUServer)
|
||||
{
|
||||
m_SSUServer = new i2p::ssu::SSUServer (m_Service, address.port);
|
||||
LogPrint ("Start listening UDP port ", address.port);
|
||||
m_SSUServer->Start ();
|
||||
DetectExternalIP ();
|
||||
}
|
||||
else
|
||||
LogPrint ("SSU server already exists");
|
||||
}
|
||||
}
|
||||
|
||||
//DetectExternalIP ();
|
||||
}
|
||||
|
||||
void Transports::Stop ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue