mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-29 11:26:38 -05:00
Fixed instances of announce_cap property ensurance logic not storing announce cap value as a fraction. By JRG <fccab3ba809f89d870d5b8b2e2cdbad1> (commit 0b88890f512410d6e76e3785c3919657a2b34aa4)
This commit is contained in:
parent
6c9d717cd6
commit
06dc4ad550
2 changed files with 3 additions and 3 deletions
|
|
@ -389,7 +389,7 @@ class Interface:
|
|||
|
||||
def process_announce_queue(self):
|
||||
if not hasattr(self, "announce_cap"):
|
||||
self.announce_cap = RNS.Reticulum.ANNOUNCE_CAP
|
||||
self.announce_cap = RNS.Reticulum.ANNOUNCE_CAP/100.0
|
||||
|
||||
if hasattr(self, "announce_queue"):
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -1521,7 +1521,7 @@ class Transport:
|
|||
# TODO: Rethink whether this is actually optimal.
|
||||
if packet.hops > 0:
|
||||
|
||||
if not hasattr(interface, "announce_cap"): interface.announce_cap = RNS.Reticulum.ANNOUNCE_CAP
|
||||
if not hasattr(interface, "announce_cap"): interface.announce_cap = RNS.Reticulum.ANNOUNCE_CAP/100.0
|
||||
if not hasattr(interface, "announce_allowed_at"): interface.announce_allowed_at = 0
|
||||
if not hasattr(interface, "announce_queue"): interface.announce_queue = []
|
||||
|
||||
|
|
@ -3299,7 +3299,7 @@ class Transport:
|
|||
packet = RNS.Packet(path_request_dst, path_request_data, packet_type = RNS.Packet.DATA, transport_type = RNS.Transport.BROADCAST, header_type = RNS.Packet.HEADER_1, attached_interface = on_interface)
|
||||
|
||||
if on_interface != None and recursive:
|
||||
if not hasattr(on_interface, "announce_cap"): on_interface.announce_cap = RNS.Reticulum.ANNOUNCE_CAP
|
||||
if not hasattr(on_interface, "announce_cap"): on_interface.announce_cap = RNS.Reticulum.ANNOUNCE_CAP/100.0
|
||||
if not hasattr(on_interface, "announce_allowed_at"): on_interface.announce_allowed_at = 0
|
||||
if not hasattr(on_interface, "announce_queue"): on_interface.announce_queue = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue