forked from Ports/perfect_dark
port-net: query.py: Allow querying broadcast
This waits for the first reply and then exits.
This commit is contained in:
1 parent
6d3ea5b0fd
commit
0669ce5668
1 file changed
+1
@@ -49,6 +49,7 @@ if ':' in host:
|
||||
sockfam = socket.AF_INET6
|
||||
|
||||
sock = socket.socket(sockfam, socket.SOCK_DGRAM)
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, True)
|
||||
sock.settimeout(MAX_WAIT)
|
||||
|
||||
# send query magic to server
|
||||
|
||||
Reference in new issue
Block a user