mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-17 21:01:48 +02:00
add options to not use ntcp or ssu
This commit is contained in:
parent
fa68e392c8
commit
e868d427dd
6 changed files with 22 additions and 13 deletions
|
@ -205,8 +205,10 @@ namespace i2p
|
|||
LogPrint(eLogInfo, "Daemon: starting UPnP");
|
||||
d.m_UPnP.Start ();
|
||||
#endif
|
||||
bool ntcp; i2p::config::GetOption("ntcp", ntcp);
|
||||
bool ssu; i2p::config::GetOption("ssu", ssu);
|
||||
LogPrint(eLogInfo, "Daemon: starting Transports");
|
||||
i2p::transport::transports.Start();
|
||||
i2p::transport::transports.Start(ntcp, ssu);
|
||||
if (i2p::transport::transports.IsBoundNTCP() || i2p::transport::transports.IsBoundSSU()) {
|
||||
LogPrint(eLogInfo, "Daemon: Transports started");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue