Browse Source

don't use port from SSU2 address

pull/1774/head
orignal 3 years ago
parent
commit
473159be0f
  1. 3
      libi2pd/RouterContext.cpp

3
libi2pd/RouterContext.cpp

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

Loading…
Cancel
Save