mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
check if we can send HolePunch to partcular address
This commit is contained in:
parent
22f9abc2f1
commit
dda25d431c
4 changed files with 23 additions and 1 deletions
|
@ -1344,7 +1344,12 @@ namespace transport
|
|||
{
|
||||
auto addr = ep.address ().is_v6 () ? r->GetSSU2V6Address () : r->GetSSU2V4Address ();
|
||||
if (addr)
|
||||
SendHolePunch (bufbe32toh (buf + 33), ep, addr->i);
|
||||
{
|
||||
if (m_Server.IsSupported (ep.address ()))
|
||||
SendHolePunch (bufbe32toh (buf + 33), ep, addr->i);
|
||||
else
|
||||
code = eSSU2RelayResponseCodeCharlieUnsupportedAddress;
|
||||
}
|
||||
else
|
||||
{
|
||||
LogPrint (eLogWarning, "SSU2: RelayInfo unknown address");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue