don't use port from SSU2 address

This commit is contained in:
orignal 2022-07-04 19:32:43 -04:00
parent 0e6ad548b2
commit 473159be0f

View File

@ -629,7 +629,8 @@ namespace i2p
addr->published = true; addr->published = true;
addr->caps |= i2p::data::RouterInfo::eSSUIntroducer; addr->caps |= i2p::data::RouterInfo::eSSUIntroducer;
addr->ssu->introducers.clear (); addr->ssu->introducers.clear ();
port = addr->port; if (!addr->IsSSU2 ())
port = addr->port;
} }
// publish NTCP2 // publish NTCP2
bool ntcp2; i2p::config::GetOption("ntcp2.enabled", ntcp2); bool ntcp2; i2p::config::GetOption("ntcp2.enabled", ntcp2);