Skip to content

Commit edb4c75

Browse files
committed
[java] bind the test server to the address used to connect to it
1 parent 174b880 commit edb4c75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/test/org/openqa/selenium/testing/drivers/OutOfProcessSeleniumServer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public OutOfProcessSeleniumServer start(String mode, String... extraFlags) {
9696

9797
List<String> startupArgs = new ArrayList<>();
9898
startupArgs.add(mode);
99+
startupArgs.add("--host");
100+
startupArgs.add(localAddress);
99101
startupArgs.add("--port");
100102
startupArgs.add(String.valueOf(port));
101103
if (!driverProvided) {

0 commit comments

Comments
 (0)