mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-16 19:00:14 +00:00
Added check for destination direction on annonuce
This commit is contained in:
parent
70cbb8dc79
commit
21c6dbfce0
@ -182,6 +182,9 @@ class Destination:
|
|||||||
if self.type != Destination.SINGLE:
|
if self.type != Destination.SINGLE:
|
||||||
raise TypeError("Only SINGLE destination types can be announced")
|
raise TypeError("Only SINGLE destination types can be announced")
|
||||||
|
|
||||||
|
if self.direction != Destination.IN:
|
||||||
|
raise TypeError("Only IN destination types can be announced")
|
||||||
|
|
||||||
now = time.time()
|
now = time.time()
|
||||||
stale_responses = []
|
stale_responses = []
|
||||||
for entry_tag in self.path_responses:
|
for entry_tag in self.path_responses:
|
||||||
|
Loading…
Reference in New Issue
Block a user