Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance http outbound to work with https and http/2 upstreams #2488

Closed
wants to merge 2 commits into from
Closed

Enhance http outbound to work with https and http/2 upstreams #2488

wants to merge 2 commits into from

Conversation

darhwa
Copy link
Contributor

@darhwa darhwa commented May 18, 2020

  1. This commit enables http outbound to set up a HTTP tunnel above HTTP/1.1, HTTP/1.1 over TLS, or HTTP/2 over TLS (previously it only works for plain HTTP/1.1)
  2. In setting up tunnel by CONNECT method, replaces handwritten request with standard http.Request

The main initiative is to enable v2ray working as a frontend to h2-enabled proxy server (i.e., caddy's http.forwardproxy plugin).

1. allow users to disable session ticket
2. set default alpn to ["h2", "http/1.1"]
  1. enable to use http/1.1, http/1.1 over tls and http/2 over tls
(previously only work for plain http/1.1)
  2. replace handwritten request with standard http.Request to set up
  CONNECT tunnel

  The main initiative is to enable v2ray working with caddy's
  http.forwardproxy
@darhwa
Copy link
Contributor Author

darhwa commented Jun 24, 2020

Duplicate of v2fly#18

@darhwa darhwa closed this Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant