don't publish introducers for non-published SSU2 address

This commit is contained in:
orignal 2022-07-20 16:13:00 -04:00
parent 2197cd8620
commit 4a3e481a83

View File

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