From 35990663564724796fb25381d197ae9ec08a195a Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 4 Nov 2024 13:05:27 +0200 Subject: [PATCH] Revert "Test" This reverts commit 18c2a38b97e4040ac3ee50070bff700abfd3e965. --- RNS/Interfaces/TCPInterface.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/RNS/Interfaces/TCPInterface.py b/RNS/Interfaces/TCPInterface.py index 6c02c74..2c6a036 100644 --- a/RNS/Interfaces/TCPInterface.py +++ b/RNS/Interfaces/TCPInterface.py @@ -200,9 +200,7 @@ class TCPClientInterface(Interface): if initial: RNS.log("Establishing TCP connection for "+str(self)+"...", RNS.LOG_DEBUG) - addrInfo=socket.getaddrinfo(self.target_ip, self.target_port) - addrFam=addrInfo[0] - self.socket = socket.socket(addrFam, socket.SOCK_STREAM) + self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.socket.settimeout(TCPClientInterface.INITIAL_CONNECT_TIMEOUT) self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) self.socket.connect((self.target_ip, self.target_port))