Browse Source

add missing 6 in AF_INET

develop
yakamok 6 years ago committed by GitHub
parent
commit
6bbf2ae5ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      send-view.py

2
send-view.py

@ -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_INET, socket.SOCK_DGRAM) conn = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
conn.sendto(tosend, (SERVER, 45671)) conn.sendto(tosend, (SERVER, 45671))
break break
except: except:

Loading…
Cancel
Save