Browse Source

don't publish introducers for non-published SSU2 address

pull/1786/head
orignal 2 years ago
parent
commit
4a3e481a83
  1. 2
      libi2pd/RouterInfo.cpp

2
libi2pd/RouterInfo.cpp

@ -1321,7 +1321,7 @@ namespace data
size_t len = address.IsSSU2 () ? 32 : 16; size_t len = address.IsSSU2 () ? 32 : 16;
WriteString (address.i.ToBase64 (len), properties); properties << ';'; WriteString (address.i.ToBase64 (len), properties); properties << ';';
} }
if (address.transportStyle == eTransportSSU || address.IsSSU2 ()) if (address.transportStyle == eTransportSSU || (address.IsSSU2 () && isPublished))
{ {
// write introducers if any // write introducers if any
if (address.ssu && !address.ssu->introducers.empty()) if (address.ssu && !address.ssu->introducers.empty())

Loading…
Cancel
Save