Socket
Socket
Sign inDemoInstall

http2-proxy

Package Overview
Dependencies
0
Maintainers
1
Versions
193
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

10

index.js

@@ -329,4 +329,6 @@ const http2 = require('http2')

headers[HTTP2_HEADER_FORWARDED] = `by=${req.socket.localAddress}`
headers[HTTP2_HEADER_FORWARDED] += `; for=${req.socket.remoteAddress}`
if (req.socket) {
headers[HTTP2_HEADER_FORWARDED] = `by=${req.socket.localAddress}`
headers[HTTP2_HEADER_FORWARDED] += `; for=${req.socket.remoteAddress}`
}

@@ -348,3 +350,5 @@ if (forwarded) {

headers[HTTP2_HEADER_FORWARDED] += `; proto=${req.socket.encrypted ? 'https' : 'http'}`
if (req.socket) {
headers[HTTP2_HEADER_FORWARDED] += `; proto=${req.socket.encrypted ? 'https' : 'http'}`
}

@@ -351,0 +355,0 @@ return headers

{
"name": "http2-proxy",
"version": "1.0.3",
"version": "1.0.4",
"scripts": {

@@ -5,0 +5,0 @@ "dev": "nodemon --inspect=9308 --expose-http2 src",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc