mirror of
https://github.com/markqvist/Reticulum
synced 2026-11-27 13:52:15 +00:00
Added check for destination direction on annonuce
This commit is contained in:
1 parent
70cbb8dc79
commit
21c6dbfce0
1 file changed
+3
@@ -181,6 +181,9 @@ class Destination:
|
||||
"""
|
||||
if self.type != Destination.SINGLE:
|
||||
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()
|
||||
stale_responses = []
|
||||
|
||||
Reference in new issue
Block a user