Skip to content

Commit

Permalink
fix security
Browse files Browse the repository at this point in the history
  • Loading branch information
ByronHsu committed Dec 6, 2024
1 parent 849755d commit 3751dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/py_test/test_launch_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def popen_launch_router(

def find_available_port():
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind(("", 0))
s.bind(("127.0.0.1", 0))
return s.getsockname()[1]


Expand Down

0 comments on commit 3751dc8

Please sign in to comment.