Revert AF_INET6 addition to TCPInterface, since it breaks normal IPv4 connectivity for interface

This commit is contained in:
Mark Qvist 2024-10-06 10:01:55 +02:00
parent 4465fa9882
commit 83a2999d29
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ class TCPClientInterface(Interface):
if initial:
RNS.log("Establishing TCP connection for "+str(self)+"...", RNS.LOG_DEBUG)
self.socket = socket.socket(socket.AF_INET|socket.AF_INET6, 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))