From 8b13d6e08b67d28801087627e125baace000a617 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 12 May 2025 11:41:06 +0200 Subject: [PATCH] Fixed announce handlers not triggering after shared instance disappearance/reappearance --- RNS/Transport.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index ddfdde8..7166050 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1089,10 +1089,8 @@ class Transport: @staticmethod def packet_filter(packet): - # TODO: Think long and hard about this. - # Is it even strictly necessary with the current - # transport rules? - + # If connected to a shared instance, it will handle + # packet filtering if Transport.owner.is_connected_to_shared_instance: return True # Filter packets intended for other transport instances @@ -2779,7 +2777,6 @@ class Transport: Transport.reverse_table = {} Transport.link_table = {} Transport.held_announces = {} - Transport.announce_handlers = [] Transport.tunnels = {} @staticmethod