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

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

NetDb: Bypass checks on lookups of our router hash

parent 51296652
No related branches found
No related tags found
No related merge requests found
......@@ -175,7 +175,9 @@ public class HandleDatabaseLookupMessageJob extends JobImpl {
} else if (type == DatabaseEntry.KEY_TYPE_ROUTERINFO &&
lookupType != DatabaseLookupMessage.Type.LS) {
RouterInfo info = (RouterInfo) dbe;
if (info.isCurrent(EXPIRE_DELAY)) {
if (searchKey.equals(getContext().routerHash())) {
sendData(searchKey, info, fromKey, toTunnel);
} else if (info.isCurrent(EXPIRE_DELAY)) {
if ( (info.isHidden()) || (isUnreachable(info) && !publishUnreachable()) ) {
if (_log.shouldLog(Log.DEBUG))
_log.debug("Not answering a query for a netDb peer who isn't reachable");
......
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