Skip to content

Commit

Permalink
Fix reuse of UPNP UDP port in NAS may fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
ultratoto14 committed Sep 26, 2018
1 parent fbd37f2 commit fa1da96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netdisco/daikin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def update(self):

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.settimeout(DISCOVERY_TIMEOUT.seconds)
sock.bind(("", UDP_SRC_PORT))

Expand Down

0 comments on commit fa1da96

Please sign in to comment.