also proxy the host

This commit is contained in:
John Bintz 2016-03-31 16:25:27 -04:00
parent 576ec2b73b
commit 9abe069fe8

View File

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