Router: Allow LS2 DSM down a tunnel

This commit is contained in:
zzz
2018-12-02 18:53:13 +00:00
parent e6912453e0
commit ee722b7688

View File

@ -154,7 +154,7 @@ class InboundMessageDistributor implements GarlicMessageReceiver.CloveReceiver {
_log.error("Dropping DSM w/ reply token down a expl. tunnel: " + msg); _log.error("Dropping DSM w/ reply token down a expl. tunnel: " + msg);
return; return;
} }
if (dsm.getEntry().getType() == DatabaseEntry.KEY_TYPE_LEASESET) if (dsm.getEntry().isLeaseSet())
((LeaseSet)dsm.getEntry()).setReceivedAsReply(); ((LeaseSet)dsm.getEntry()).setReceivedAsReply();
break; break;
@ -249,7 +249,7 @@ class InboundMessageDistributor implements GarlicMessageReceiver.CloveReceiver {
dsm.setReplyTunnel(null); dsm.setReplyTunnel(null);
dsm.setReplyGateway(null); dsm.setReplyGateway(null);
if (dsm.getEntry().getType() == DatabaseEntry.KEY_TYPE_LEASESET) { if (dsm.getEntry().isLeaseSet()) {
// Case 1: // Case 1:
// store of our own LS. // store of our own LS.
// This is almost certainly a response to a FloodfillVerifyStoreJob search. // This is almost certainly a response to a FloodfillVerifyStoreJob search.