From 3dd020cb861547c5b3196bfaff88d4345faa6b2a Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 12 Apr 2025 21:30:36 +0200 Subject: [PATCH] Fix string representation --- 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 8a0dd67..5f318fa 100644 --- a/RNS/Interfaces/LocalInterface.py +++ b/RNS/Interfaces/LocalInterface.py @@ -329,7 +329,8 @@ class LocalClientInterface(Interface): def __str__(self): - return "LocalInterface["+str(self.target_port)+"]" + if self.socket_path: return "Shared Instance["+str(self.socket_path.replace("\0", ""))+"]" + else: return "Shared Instance["+str(self.target_port)+"]" class LocalServerInterface(Interface):