also proxy the host
This commit is contained in:
parent
576ec2b73b
commit
9abe069fe8
1
proxy.js
1
proxy.js
|
@ -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 &&
|
||||||
|
|
Loading…
Reference in New Issue