* I2CP: Fix external I2CP apps, including i2ping, caused by 0 nonce value,

broken in 0.9.2 (tickets #799, #801). Allow nonces == 0.
   Javadocs and cleanups.
This commit is contained in:
zzz
2012-12-05 00:03:27 +00:00
parent 0c5811801f
commit ca00b34314
7 changed files with 56 additions and 24 deletions

View File

@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 12;
public final static long BUILD = 13;
/** for example "-test" */
public final static String EXTRA = "";

View File

@@ -379,9 +379,10 @@ class ClientConnectionRunner {
* Send a notification to the client that their message (id specified) was accepted
* for delivery (but not necessarily delivered)
* Doesn't do anything if i2cp.messageReliability = "none"
* or if the nonce is 0.
*/
void ackSendMessage(MessageId id, long nonce) {
if (_dontSendMSM)
if (_dontSendMSM || nonce == 0)
return;
SessionId sid = _sessionId;
if (sid == null) return;