Do not publish transient I2P destinations

This commit is contained in:
TheKysek 2017-07-23 20:58:00 +02:00
parent 2085f01281
commit 7ff7a16470
No known key found for this signature in database
GPG Key ID: 50D9AF00D0B1C497

View File

@ -160,7 +160,7 @@ class Manager(threading.Thread):
@staticmethod @staticmethod
def publish_i2p_destination(): def publish_i2p_destination():
if shared.i2p_session_nick: if shared.i2p_session_nick and not shared.i2p_transient:
logging.info('Publishing our I2P destination') logging.info('Publishing our I2P destination')
dest_pub_raw = base64.b64decode(shared.i2p_dest_pub, altchars=b'-~') dest_pub_raw = base64.b64decode(shared.i2p_dest_pub, altchars=b'-~')
obj = structure.Object(b'\x00' * 8, int(time.time() + 2 * 3600), shared.i2p_dest_obj_type, shared.i2p_dest_obj_version, 1, dest_pub_raw) obj = structure.Object(b'\x00' * 8, int(time.time() + 2 * 3600), shared.i2p_dest_obj_type, shared.i2p_dest_obj_version, 1, dest_pub_raw)