Skip to content

Commit

Permalink
#9 Set reuse address to true
Browse files Browse the repository at this point in the history
Because of the error while trying to run the server, the option to reuse socket address was set to true.
  • Loading branch information
mkristofic committed Jan 4, 2020
1 parent a9a5c85 commit e162bb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
server_adress = (ip, port)

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind(server_adress)

# DETECTOR CONFIG
Expand Down

0 comments on commit e162bb2

Please sign in to comment.