forked from I2P_Developers/i2p.i2p
I2CP: Set LS2 unpublished bit, show in debug output
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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));
|
||||
|
@ -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));
|
||||
|
@ -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));
|
||||
|
Reference in New Issue
Block a user