Skip to content

Commit

Permalink
removed ip address form clippy receiver binding
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulmadhavan committed Jun 24, 2014
1 parent 8b92439 commit 1d94fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/Clippy.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self,msg,port):
def run(self):
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind((MCAST_GRP, self._port))
sock.bind(('', self._port))
mreq = struct.pack("4sl", socket.inet_aton(MCAST_GRP), socket.INADDR_ANY)
sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)

Expand Down

0 comments on commit 1d94fdf

Please sign in to comment.