Skip to content

Commit

Permalink
Update fixtures.py to use "127.0.0.1" for local ports (dpkp#2384)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbarnha authored and bradenneal1 committed May 16, 2024
1 parent 9ea42a0 commit f0167cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

def get_open_port():
sock = socket.socket()
sock.bind(("", 0))
sock.bind(("127.0.0.1", 0))
port = sock.getsockname()[1]
sock.close()
return port
Expand Down

0 comments on commit f0167cd

Please sign in to comment.