Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tremblerz authored Mar 7, 2025
1 parent 3e221d0 commit 3200465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/communication/grpc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def update_port(
with self.lock:
# FIXME: This is a security vulnerability because
# any node can update the ip and port of any other node
self.peer_ids[request.rank.rank]["ip"] = request.ip # type: ignore
# self.peer_ids[request.rank.rank]["ip"] = request.ip # type: ignore
self.peer_ids[request.rank.rank]["port"] = request.port.port # type: ignore
return comm_pb2.Empty() # type: ignore

Expand Down Expand Up @@ -287,7 +287,7 @@ def start_listener(self):
],
)
comm_pb2_grpc.add_CommunicationServerServicer_to_server(self.servicer, self.listener) # type: ignore
address = f"{self.host}:{self.port}"
address = f"*:{self.port}"
self.listener.add_insecure_port(address)
self.listener.start()
print(f"Started listener on {address}")
Expand Down

0 comments on commit 3200465

Please sign in to comment.