diff --git a/lib/client/remote.js b/lib/client/remote.js index ff71c24..c635130 100644 --- a/lib/client/remote.js +++ b/lib/client/remote.js @@ -29,6 +29,7 @@ exports.createRemote = function(remote, port) { debug('key [%s]', key); if(err) return res.end('error reading .dpd/keys.json: ' + err.message); req.headers['dpd-ssh-key'] = key; + req.headers.host = remoteUrl.hostname; proxy.proxyRequest(req, res, { host: remoteUrl.hostname, port: remoteUrl.port || 80,