Browse Source

don't set port=1

pull/1794/head
orignal 2 years ago
parent
commit
549dcbee32
  1. 2
      libi2pd/Transports.cpp

2
libi2pd/Transports.cpp

@ -1066,7 +1066,7 @@ namespace transport @@ -1066,7 +1066,7 @@ namespace transport
if (ssu2)
{
uint16_t ssu2port; i2p::config::GetOption("ssu2.port", ssu2port);
if (!ssu2port) ssu2port = ssu ? (port + 1) : port;
if (!ssu2port && port) ssu2port = ssu ? (port + 1) : port;
bool published; i2p::config::GetOption("ssu2.published", published);
if (published)
i2p::context.PublishSSU2Address (ssu2port, true, ipv4, ipv6); // publish

Loading…
Cancel
Save