I2CP: Set LS2 unpublished bit, show in debug output

This commit is contained in:
zzz
2019-01-13 13:14:58 +00:00
parent 10f2d838c9
commit 4283d71b92
7 changed files with 21 additions and 1 deletions

View File

@ -128,6 +128,8 @@ class RequestLeaseSetMessageHandler extends HandlerImpl {
session.destroySession();
return;
}
if (Boolean.parseBoolean(session.getOptions().getProperty("i2cp.dontPublishLeaseSet")))
((LeaseSet2)leaseSet).setUnpublished();
} else {
leaseSet = new LeaseSet();
}

View File

@ -53,6 +53,8 @@ class RequestVariableLeaseSetMessageHandler extends RequestLeaseSetMessageHandle
session.destroySession();
return;
}
if (Boolean.parseBoolean(session.getOptions().getProperty("i2cp.dontPublishLeaseSet")))
((LeaseSet2)leaseSet).setUnpublished();
} else {
leaseSet = new LeaseSet();
}

View File

@ -298,6 +298,7 @@ public class EncryptedLeaseSet extends LeaseSet2 {
buf.append("\n\tTransient Expires: ").append(new java.util.Date(_transientExpires));
buf.append("\n\tOffline Signature: ").append(_offlineSignature);
}
buf.append("\n\tUnpublished? ").append(isUnpublished());
buf.append("\n\tSignature: ").append(_signature);
buf.append("\n\tPublished: ").append(new java.util.Date(_published));
buf.append("\n\tExpires: ").append(new java.util.Date(_expires));

View File

@ -540,6 +540,7 @@ public class LeaseSet2 extends LeaseSet {
buf.append("\n\t\t[").append(key).append("] = [").append(val).append("]");
}
}
buf.append("\n\tUnpublished? ").append(isUnpublished());
buf.append("\n\tSignature: ").append(_signature);
buf.append("\n\tPublished: ").append(new java.util.Date(_published));
buf.append("\n\tExpires: ").append(new java.util.Date(_expires));

View File

@ -171,6 +171,7 @@ public class MetaLeaseSet extends LeaseSet2 {
buf.append("\n\t\t[").append(key).append("] = [").append(val).append("]");
}
}
buf.append("\n\tUnpublished? ").append(isUnpublished());
buf.append("\n\tSignature: ").append(_signature);
buf.append("\n\tPublished: ").append(new java.util.Date(_published));
buf.append("\n\tExpires: ").append(new java.util.Date(_expires));

View File

@ -1,3 +1,16 @@
2019-01-13 zzz
* I2CP: Set LS2 unpublished bit, show in debug output
2019-01-12 zzz
* NetDB: Use isSlow() in floodfill criteria
* SSU: More consolidation of clock().now() calls
2019-01-10 zzz
* I2CP:
- Router-side handling of meta LS2
- Remove client-side-only options from those sent to router
- Router-side stub for encrypted LS2
2019-01-09 zzz
* Console: Fix broken image link on /configui
* I2CP: Stub out client-side creation of meta and enc. LS2

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 = 15;
public final static long BUILD = 16;
/** for example "-test" */
public final static String EXTRA = "-rc";