We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1984a5d commit d86046aCopy full SHA for d86046a
lmdeploy/pytorch/engine/mp_engine/zmq_rpc.py
@@ -32,7 +32,9 @@ def _task_callback(task: asyncio.Task) -> None:
32
class AsyncRPCServer:
33
34
def __init__(self):
35
- address = 'tcp://*'
+ # Warning: DO NOT allow visit rpc server from external network
36
+ # unauthorized access may lead to code execution vulnerability
37
+ address = 'tcp://localhost'
38
self.context = zmq.Context()
39
self.socket = self.context.socket(zmq.ROUTER)
40
self.port = self.socket.bind_to_random_port(address)
0 commit comments