Skip to content

Commit

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

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

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

if repPort:
self.repSocket = context.socket(zmq.REP)
self.repSocket.setsockopt(zmq.IPV6, True)
self.repSocket.bind(f"tcp://*:{repPort}")
self.repSocket.bind(f"tcp://[::]:{repPort}")
self.socketTasks.append(asyncio.create_task(self.onZMQReceiveREQMessage()))

async def onZMQReceivePUBMessage(self):
Expand Down

0 comments on commit 6463c08

Please sign in to comment.