mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:44:15 +00:00
libi2pd: minor logging fixes
This commit is contained in:
parent
8a58572b34
commit
af794f901f
@ -303,7 +303,7 @@ namespace transport
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LogPrint (eLogError, "SSU: Wrong external address ", ourIP.to_string ());
|
LogPrint (eLogError, "SSU: External address ", ourIP.to_string (), " is in reserved range");
|
||||||
Failed ();
|
Failed ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -609,7 +609,7 @@ namespace transport
|
|||||||
{
|
{
|
||||||
*payload = 16;
|
*payload = 16;
|
||||||
payload++; // size
|
payload++; // size
|
||||||
memcpy (payload, to.address ().to_v6 ().to_bytes ().data (), 16); // Alice's IP V6
|
memcpy (payload, to.address ().to_v6 ().to_bytes ().data (), 16); // Charlie's IP V6
|
||||||
payload += 16; // address
|
payload += 16; // address
|
||||||
}
|
}
|
||||||
htobe16buf (payload, to.port ()); // Charlie's port
|
htobe16buf (payload, to.port ()); // Charlie's port
|
||||||
@ -703,7 +703,7 @@ namespace transport
|
|||||||
if (!i2p::util::net::IsInReservedRange (ourIP))
|
if (!i2p::util::net::IsInReservedRange (ourIP))
|
||||||
i2p::context.UpdateAddress (ourIP);
|
i2p::context.UpdateAddress (ourIP);
|
||||||
else
|
else
|
||||||
LogPrint (eLogWarning, "SSU: Wrong external address ", ourIP.to_string ());
|
LogPrint (eLogError, "SSU: External address ", ourIP.to_string (), " is in reserved range");
|
||||||
if (ourIP.is_v4 ())
|
if (ourIP.is_v4 ())
|
||||||
{
|
{
|
||||||
if (ourPort != m_Server.GetPort ())
|
if (ourPort != m_Server.GetPort ())
|
||||||
@ -1301,7 +1301,7 @@ namespace transport
|
|||||||
ip = boost::asio::ip::address_v6 (bytes);
|
ip = boost::asio::ip::address_v6 (bytes);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
LogPrint (eLogWarning, "SSU: Address size ", size, " is not supported");
|
LogPrint (eLogWarning, "SSU: Address size ", int(size), " is not supported");
|
||||||
buf += size;
|
buf += size;
|
||||||
port = bufbe16toh (buf);
|
port = bufbe16toh (buf);
|
||||||
return s;
|
return s;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user