Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Can I use bouncy as a transparent proxy? #43

Closed
ghost opened this Issue · 1 comment

1 participant

@ghost

I need forword the request directly to target host.
That's to say, every request to change the hostname.

Below code just not work.

server = bouncy (req, res, bounce) ->
....[host, port] = req.headers.host.split ':'
....port ?= 80
....bounce host, parseInt(port)

The response seems crazy.
What is the right way?

@substack
Owner

I'm not sure what you're trying to do here.

@substack substack closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.