Revert "Test"

This reverts commit 18c2a38b97.
This commit is contained in:
Tristan B. Velloza Kildaire 2024-11-04 13:05:27 +02:00
parent 18c2a38b97
commit 3599066356
1 changed files with 1 additions and 3 deletions

View File

@ -200,9 +200,7 @@ class TCPClientInterface(Interface):
if initial: if initial:
RNS.log("Establishing TCP connection for "+str(self)+"...", RNS.LOG_DEBUG) RNS.log("Establishing TCP connection for "+str(self)+"...", RNS.LOG_DEBUG)
addrInfo=socket.getaddrinfo(self.target_ip, self.target_port) self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
addrFam=addrInfo[0]
self.socket = socket.socket(addrFam, socket.SOCK_STREAM)
self.socket.settimeout(TCPClientInterface.INITIAL_CONNECT_TIMEOUT) self.socket.settimeout(TCPClientInterface.INITIAL_CONNECT_TIMEOUT)
self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
self.socket.connect((self.target_ip, self.target_port)) self.socket.connect((self.target_ip, self.target_port))