From 7e9998b4fd3d90eac50bc4e0ac45983be2f23d8e Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 3 May 2023 12:21:57 +0200 Subject: [PATCH] Use included platform detection method --- RNS/Interfaces/LocalInterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Interfaces/LocalInterface.py b/RNS/Interfaces/LocalInterface.py index 1a37e64..a8433b2 100644 --- a/RNS/Interfaces/LocalInterface.py +++ b/RNS/Interfaces/LocalInterface.py @@ -42,7 +42,7 @@ class HDLC(): class ThreadingTCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer): def server_bind(self): - if sys.platform == 'win32': + if RNS.vendor.platformutils.is_windows(): self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_EXCLUSIVEADDRUSE, 1) else: self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)