use ip address 0.0.0.0 instead of 192.168.0.6
so the script does not depend on this ip address
This commit is contained in:
parent
732e28d0f0
commit
923de45109
|
@ -31,7 +31,7 @@ try:
|
|||
except:
|
||||
pass
|
||||
sock.settimeout(1)
|
||||
sock.bind(("192.168.0.6", SSDP_PORT))
|
||||
sock.bind(("0.0.0.0", SSDP_PORT))
|
||||
sock.sendto(ssdpRequest, (SSDP_ADDR, SSDP_PORT))
|
||||
try:
|
||||
while 1:
|
||||
|
|
Loading…
Reference in New Issue