|
|
|
@ -617,6 +617,18 @@ namespace data
@@ -617,6 +617,18 @@ namespace data
|
|
|
|
|
{ |
|
|
|
|
int i = 0; |
|
|
|
|
for (const auto& introducer: address.ssu->introducers) |
|
|
|
|
{ |
|
|
|
|
if (introducer.iExp) // expiration is specified
|
|
|
|
|
{ |
|
|
|
|
WriteString ("iexp" + boost::lexical_cast<std::string>(i), properties); |
|
|
|
|
properties << '='; |
|
|
|
|
WriteString (boost::lexical_cast<std::string>(introducer.iExp), properties); |
|
|
|
|
properties << ';'; |
|
|
|
|
} |
|
|
|
|
i++; |
|
|
|
|
} |
|
|
|
|
i = 0; |
|
|
|
|
for (const auto& introducer: address.ssu->introducers) |
|
|
|
|
{ |
|
|
|
|
WriteString ("ihost" + boost::lexical_cast<std::string>(i), properties); |
|
|
|
|
properties << '='; |
|
|
|
@ -654,18 +666,6 @@ namespace data
@@ -654,18 +666,6 @@ namespace data
|
|
|
|
|
properties << ';'; |
|
|
|
|
i++; |
|
|
|
|
} |
|
|
|
|
i = 0; |
|
|
|
|
for (const auto& introducer: address.ssu->introducers) |
|
|
|
|
{ |
|
|
|
|
if (introducer.iExp) // expiration is specified
|
|
|
|
|
{ |
|
|
|
|
WriteString ("iexp" + boost::lexical_cast<std::string>(i), properties); |
|
|
|
|
properties << '='; |
|
|
|
|
WriteString (boost::lexical_cast<std::string>(introducer.iExp), properties); |
|
|
|
|
properties << ';'; |
|
|
|
|
} |
|
|
|
|
i++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// write intro key
|
|
|
|
|
WriteString ("key", properties); |
|
|
|
|