Skip to content

Commit f9514d9

Browse files
committed
actually register the requested node's host and port o.0 fixes tests :)
1 parent ef580f7 commit f9514d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/server/src/org/openqa/grid/web/servlet/RegistrationServlet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ protected void process(HttpServletRequest request, HttpServletResponse response)
8080
GridNodeConfiguration nodeConfig = new GridNodeConfiguration();
8181
nodeConfig.merge(hubConfig);
8282
nodeConfig.merge(server.getConfiguration());
83+
nodeConfig.host = server.getConfiguration().host;
84+
nodeConfig.port = server.getConfiguration().port;
8385
server.setConfiguration(nodeConfig);
8486

8587
final RemoteProxy proxy = BaseRemoteProxy.getNewInstance(server, getRegistry());

0 commit comments

Comments
 (0)