From 21c6dbfce07cf25c81a4693c1f82a2bb49b5df5f Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 19 Sep 2023 10:11:45 +0200 Subject: [PATCH] Added check for destination direction on annonuce --- RNS/Destination.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RNS/Destination.py b/RNS/Destination.py index f79a689..960bcd9 100755 --- a/RNS/Destination.py +++ b/RNS/Destination.py @@ -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 = []