mirror of
https://github.com/r4sas/Niflheim-api
synced 2025-01-27 07:04:44 +00:00
changed to TCP
This commit is contained in:
parent
be6b4c9c43
commit
ba9a2d2fa8
@ -11,7 +11,7 @@ def send_view_to_server(tosend):
|
|||||||
attempts = 3
|
attempts = 3
|
||||||
while attempts:
|
while attempts:
|
||||||
try:
|
try:
|
||||||
conn = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
|
conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
conn.sendto(tosend, (SERVER, 45671))
|
conn.sendto(tosend, (SERVER, 45671))
|
||||||
break
|
break
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user