mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
make sure to use ipv4 introducers only
This commit is contained in:
parent
988007a8c9
commit
da8a6a4c2b
2 changed files with 20 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue