Skip to content

Commit

Permalink
fix: Enable IPv6
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jul 18, 2023
1 parent 6463c08 commit eac61dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/zibot/core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,12 @@ async def zmqBind(self):

if pubPort:
self.pubSocket = context.socket(zmq.PUB)
self.pubSocket.setsockopt(zmq.IPV6, True)
self.pubSocket.bind(f"tcp://[::]:{pubPort}")

if subPort:
self.subSocket = context.socket(zmq.SUB)
self.subSocket.setsockopt(zmq.IPV6, True)
self.subSocket.setsockopt(zmq.SUBSCRIBE, b"")
self.subSocket.bind(f"tcp://[::]:{subPort}")
self.socketTasks.append(asyncio.create_task(self.onZMQReceivePUBMessage()))
Expand Down

0 comments on commit eac61dc

Please sign in to comment.