|
@ -326,10 +326,13 @@ bool Session::interpret(RLP const& _r) |
|
|
if (!ep.port()) |
|
|
if (!ep.port()) |
|
|
goto CONTINUE; // Zero port? Don't think so.
|
|
|
goto CONTINUE; // Zero port? Don't think so.
|
|
|
|
|
|
|
|
|
|
|
|
if (ep.port() >= 49152) |
|
|
|
|
|
goto CONTINUE; // Private port according to IANA.
|
|
|
|
|
|
|
|
|
// TODO: PoC-7:
|
|
|
// TODO: PoC-7:
|
|
|
// Technically fine, but ignore for now to avoid peers passing on incoming ports until we can be sure that doesn't happen any more.
|
|
|
// Technically fine, but ignore for now to avoid peers passing on incoming ports until we can be sure that doesn't happen any more.
|
|
|
if (ep.port() < 30300 || ep.port() > 30305) |
|
|
// if (ep.port() < 30300 || ep.port() > 30305)
|
|
|
goto CONTINUE; // Wierd port.
|
|
|
// goto CONTINUE; // Wierd port.
|
|
|
|
|
|
|
|
|
// Avoid our random other addresses that they might end up giving us.
|
|
|
// Avoid our random other addresses that they might end up giving us.
|
|
|
for (auto i: m_server->m_addresses) |
|
|
for (auto i: m_server->m_addresses) |
|
|