Skip to content

Commit aec1279

Browse files
authored
Do not relay SSDP unicast to remotes (#52)
1 parent 4154381 commit aec1279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multicast-relay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def loop(self):
576576
if receivingInterface == 'local' and not self.match(dstAddr, dstPort):
577577
continue
578578

579-
if self.remoteSockets() and not (receivingInterface == 'remote' and self.noRemoteRelay):
579+
if self.remoteSockets() and not (receivingInterface == 'remote' and self.noRemoteRelay) and srcAddr != self.ssdpUnicastAddr:
580580
packet = self.aes.encrypt(self.MAGIC + socket.inet_aton(addr) + data)
581581
for remoteConnection in self.remoteSockets():
582582
if remoteConnection == s:

0 commit comments

Comments
 (0)