mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-30 10:35:23 +08:00
dpd remote now passes hostname
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user