mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
select introducers randomly. More logging for RelayIntro
This commit is contained in:
parent
fc63ca6982
commit
71766ecd16
2 changed files with 27 additions and 13 deletions
|
@ -1070,6 +1070,7 @@ namespace transport
|
|||
const uint8_t * introKey, uint64_t token)
|
||||
{
|
||||
// we are Charlie
|
||||
LogPrint (eLogDebug, "SSU2: Sending HolePunch to ", ep);
|
||||
Header header;
|
||||
uint8_t h[32], payload[SSU2_MAX_PACKET_SIZE];
|
||||
// fill packet
|
||||
|
@ -1641,11 +1642,14 @@ namespace transport
|
|||
SendHolePunch (bufbe32toh (buf + 33), ep, addr->i, token);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogPrint (eLogWarning, "SSU2: RelayIntro unsupported address");
|
||||
code = eSSU2RelayResponseCodeCharlieUnsupportedAddress;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
LogPrint (eLogWarning, "SSU2: RelayInfo unknown address");
|
||||
LogPrint (eLogWarning, "SSU2: RelayIntro unknown address");
|
||||
code = eSSU2RelayResponseCodeCharlieAliceIsUnknown;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue