I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit aa3d2f39 authored by zzz's avatar zzz
Browse files

Router: Fix logic error in check for local destinations

parent fb67ebb3
No related branches found
No related tags found
No related merge requests found
...@@ -63,9 +63,9 @@ public class ClientMessagePool { ...@@ -63,9 +63,9 @@ public class ClientMessagePool {
* *
*/ */
public void add(ClientMessage msg, boolean isDefinitelyRemote) { public void add(ClientMessage msg, boolean isDefinitelyRemote) {
if ( !isDefinitelyRemote || if (!isDefinitelyRemote &&
(_context.clientManager().isLocal(msg.getDestination())) || (_context.clientManager().isLocal(msg.getDestination()) ||
(_context.clientManager().isLocal(msg.getDestinationHash())) ) { _context.clientManager().isLocal(msg.getDestinationHash()))) {
if (_log.shouldLog(Log.DEBUG)) if (_log.shouldLog(Log.DEBUG))
_log.debug("Adding message for local delivery"); _log.debug("Adding message for local delivery");
_context.clientManager().messageReceived(msg); _context.clientManager().messageReceived(msg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment