Skip to content

Commit

Permalink
Multicast bind should be MULTICAST_ADDRESS, it will be help in some e…
Browse files Browse the repository at this point in the history
…nvironment (#199)
  • Loading branch information
yegong authored Nov 4, 2022
1 parent 3f2ef21 commit 77aaea1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name = 'PyXiaomiGateway',
packages = ['xiaomi_gateway'],
install_requires=['cryptography>=2.1.1'],
version = '0.14.1',
version = '0.14.2',
description = 'A library to communicate with the Xiaomi Gateway',
author='Daniel Hjelseth Høyer',
url='https://github.com/Danielhiversen/PyXiaomiGateway/',
Expand Down
2 changes: 1 addition & 1 deletion xiaomi_gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def create_mcast_socket(interface, port, bind_interface=True, blocking=True):
socket.SOL_IP, socket.IP_ADD_MEMBERSHIP, mreq,
)

udp_socket.bind((interface if bind_interface else "", port))
udp_socket.bind((MULTICAST_ADDRESS if bind_interface else "", port))

return udp_socket

Expand Down

0 comments on commit 77aaea1

Please sign in to comment.