http-proxy
Advanced tools
Comparing version 0.6.4 to 0.6.5
@@ -436,6 +436,6 @@ /* | ||
// | ||
if (options.enableXForwarded === true && req.connection) { | ||
if (options.enableXForwarded === true && req.connection && req.connection.socket) { | ||
req.headers['x-forwarded-for'] = req.connection.remoteAddress || req.connection.socket.remoteAddress; | ||
req.headers['x-forwarded-port'] = req.connection.remotePort || req.connection.socket.remotePort; | ||
req.headers['x-forwarded-proto'] = res.connection.pair ? 'https' : 'http'; | ||
req.headers['x-forwarded-proto'] = req.connection.pair ? 'https' : 'http'; | ||
} | ||
@@ -442,0 +442,0 @@ |
{ | ||
"name": "http-proxy", | ||
"description": "A full-featured http reverse proxy for node.js", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"author": "Charlie Robbins <charlie.robbins@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
298261