Skip to content

Commit

Permalink
fix unicast relay?
Browse files Browse the repository at this point in the history
  • Loading branch information
vvd170501 committed Jan 2, 2021
1 parent d4f99fb commit 5a7d526
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions multicast-relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@ def addListener(self, addr, port, service):
else:
# unicast -- we don't know yet which IP we'll want to send to
self.etherAddrs[addr] = None
rx = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_UDP)
rx.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
rx.bind((addr, port))
self.receivers.append(rx)


# Set up the receiving socket and corresponding IP and interface information.
# One receiving socket is required per multicast address. But for extra
Expand Down

1 comment on commit 5a7d526

@alsmith
Copy link

@alsmith alsmith commented on 5a7d526 Jan 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks ! Merged to master alsmith@e9db7fb

Please sign in to comment.