From 6bbf2ae5aed9721af9ae0d3c4437e37fc5644e67 Mon Sep 17 00:00:00 2001 From: yakamok <38737288+yakamok@users.noreply.github.com> Date: Sun, 1 Jul 2018 02:03:26 +0200 Subject: [PATCH] add missing 6 in AF_INET --- send-view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/send-view.py b/send-view.py index 2efd08f..4d1347f 100644 --- a/send-view.py +++ b/send-view.py @@ -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: