Bug 1857193 - Make passing --port=0 select a free port, r=webdriver-reviewers,jdescottes
commit1164415e9910d5650ed3a191da829d329b89ebb8
authorJames Graham <james@hoppipolla.co.uk>
Fri, 6 Oct 2023 07:35:43 +0000 (6 07:35 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Fri, 6 Oct 2023 07:35:43 +0000 (6 07:35 +0000)
treef8ad1fcc5c21ff9b716c7c15ee635c1e1add5eba
parent15b53f54291c16fa4b392e956a234ba7c07d3683
Bug 1857193 - Make passing --port=0 select a free port, r=webdriver-reviewers,jdescottes

Previously this bound to a free port, but we weren't allowing
connections because we checked the Host header against the specified
port (i.e. 0) rather than the bound port.

Differential Revision: https://phabricator.services.mozilla.com/D189925
testing/webdriver/src/server.rs