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

Export ProxyHttpServer #371

Merged
merged 1 commit into from
Mar 15, 2020
Merged

Export ProxyHttpServer #371

merged 1 commit into from
Mar 15, 2020

Conversation

kimor79
Copy link
Contributor

@kimor79 kimor79 commented Mar 11, 2020

To more easily support something like:

HijackConnect(func(req *http.Request, client net.Conn, ctx *goproxy.ProxyCtx) {
  // ...
  remote, err := ctx.Proxy.ConnectDial("tcp", req.URL.Host)
  // ...
})

To more easily support something like:
```
HijackConnect(func(req *http.Request, client net.Conn, ctx *goproxy.ProxyCtx) {
  // ...
  remote, err := ctx.Proxy.ConnectDial("tcp", req.URL.Host)
  // ...
})
```
@elazarl elazarl merged commit 1f3cb66 into elazarl:master Mar 15, 2020
@kimor79 kimor79 deleted the ctx_export_proxy branch March 17, 2020 21:08
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.

2 participants