1
0
mirror of https://github.com/r4sas/Niflheim-api synced 2025-01-26 06:34:14 +00:00

add missing 6 in AF_INET

This commit is contained in:
yakamok 2018-07-01 02:03:26 +02:00 committed by GitHub
parent c8d4f561bb
commit 6bbf2ae5ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ def send_view_to_server(tosend):
attempts = 3
while attempts:
try:
conn = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
conn = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
conn.sendto(tosend, (SERVER, 45671))
break
except: