From 628777900ebcebe5859229c782165956834fd8aa Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 2 Nov 2023 12:44:57 +0100 Subject: [PATCH] Fixed attribute --- RNS/Interfaces/LocalInterface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RNS/Interfaces/LocalInterface.py b/RNS/Interfaces/LocalInterface.py index ee5a0f4..fae53fd 100644 --- a/RNS/Interfaces/LocalInterface.py +++ b/RNS/Interfaces/LocalInterface.py @@ -339,7 +339,8 @@ class LocalServerInterface(Interface): spawned_interface.target_port = str(handler.client_address[1]) spawned_interface.parent_interface = self spawned_interface.bitrate = self.bitrate - spawned_interface._force_bitrate = self._force_bitrate + if hasattr(self, "_force_bitrate"): + spawned_interface._force_bitrate = self._force_bitrate # RNS.log("Accepting new connection to shared instance: "+str(spawned_interface), RNS.LOG_EXTREME) RNS.Transport.interfaces.append(spawned_interface) RNS.Transport.local_client_interfaces.append(spawned_interface)