Guard empty keepalive frames

This commit is contained in:
Mark Qvist 2026-08-28 21:47:24 +02:00
parent 149e415109
commit 4eebf0b685
No known key found for this signature in database
8 changed files with 8 additions and 0 deletions

View file

@ -537,6 +537,7 @@ class I2PInterfacePeer(Interface):
raise IOError("Attempt to reconnect on a non-initiator I2P interface")
def process_incoming(self, data):
if not data: return
self.rxb += len(data)
if hasattr(self, "parent_interface") and self.parent_interface != None and self.parent_count:
self.parent_interface.rxb += len(data)