make sure to use ipv4 introducers only

This commit is contained in:
orignal 2015-12-01 09:21:02 -05:00
parent 988007a8c9
commit da8a6a4c2b
2 changed files with 20 additions and 11 deletions

View file

@ -384,7 +384,7 @@ namespace transport
s.Insert (address->host.to_v6 ().to_bytes ().data (), 16); // our IP V6
s.Insert<uint16_t> (htobe16 (address->port)); // our port
uint32_t relayTag = 0;
if (i2p::context.GetRouterInfo ().IsIntroducer ())
if (i2p::context.GetRouterInfo ().IsIntroducer () && !IsV6 ())
{
RAND_bytes((uint8_t *)&relayTag, 4);
if (!relayTag) relayTag = 1;