Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lmdeploy/pytorch/engine/mp_engine/zmq_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def _task_callback(task: asyncio.Task) -> None:
class AsyncRPCServer:

def __init__(self):
address = 'tcp://*'
# Warning: DO NOT allow visit rpc server from external network
# unauthorized access may lead to code execution vulnerability
address = 'tcp://localhost'
self.context = zmq.Context()
self.socket = self.context.socket(zmq.ROUTER)
self.port = self.socket.bind_to_random_port(address)
Expand Down