forked from I2P_Developers/i2p.i2p
LS2: Honor unpublished flag
This commit is contained in:
@ -60,6 +60,18 @@ public class LeaseSet2 extends LeaseSet {
|
|||||||
_flags |= FLAG_UNPUBLISHED;
|
_flags |= FLAG_UNPUBLISHED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If true, we received this LeaseSet by a remote peer publishing it to
|
||||||
|
* us, AND the unpublished flag is not set.
|
||||||
|
* Default false.
|
||||||
|
*
|
||||||
|
* @since 0.9.39 overridden
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean getReceivedAsPublished() {
|
||||||
|
return super.getReceivedAsPublished() && !isUnpublished();
|
||||||
|
}
|
||||||
|
|
||||||
public String getOption(String opt) {
|
public String getOption(String opt) {
|
||||||
if (_options == null)
|
if (_options == null)
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user