mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
moved UPnP instance to Transports. Use actual port from RouterContext
This commit is contained in:
parent
7c13194d5a
commit
2442d0e910
5 changed files with 33 additions and 33 deletions
|
@ -109,6 +109,10 @@ namespace transport
|
|||
|
||||
void Transports::Start ()
|
||||
{
|
||||
#ifdef USE_UPNP
|
||||
m_UPnP.Start ();
|
||||
LogPrint(eLogInfo, "UPnP started");
|
||||
#endif
|
||||
m_DHKeysPairSupplier.Start ();
|
||||
m_IsRunning = true;
|
||||
m_Thread = new std::thread (std::bind (&Transports::Run, this));
|
||||
|
@ -141,6 +145,10 @@ namespace transport
|
|||
|
||||
void Transports::Stop ()
|
||||
{
|
||||
#ifdef USE_UPNP
|
||||
m_UPnP.Stop ();
|
||||
LogPrint(eLogInfo, "UPnP stopped");
|
||||
#endif
|
||||
m_PeerCleanupTimer.cancel ();
|
||||
m_Peers.clear ();
|
||||
if (m_SSUServer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue