also proxy the host

This commit is contained in:
John Bintz 2016-03-31 16:25:27 -04:00
parent 576ec2b73b
commit 9abe069fe8
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ app.use(proxy('localhost', {
},
decorateRequest: function(req) {
req.port = app.config['selenium-port'] || 4444;
req.hostname = app.config['selenium-host'] || 'localhost';
if (currentSession) {
if (req.path === '/wd/hub/session/' + currentSession &&