if origDestinationAddress == PacketRelay.SSDP_MCAST_ADDR \
and origDestinationPort == PacketRelay.SSDP_MCAST_PORT:
if re.search(r'NOTIFY', data) or re.search(r'M-SEARCH', data):
This potentially decreases discovery time as a devices advertises itself and doesn't just respond to a search?
https://github.com/alsmith/multicast-relay/blob/ca7db4ee8dde8c0186b24ac2d58fbf08df9978a3/multicast-relay.py#L320
This potentially decreases discovery time as a devices advertises itself and doesn't just respond to a search?