dpd remote now passes hostname

This commit is contained in:
Ritchie Martori
2012-07-07 16:36:37 -07:00
parent 12c92bdc15
commit d776ad9f18

View File

@@ -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,