Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

onconnect hook could not use agent #10

Closed
dawei101 opened this issue Jul 10, 2016 · 3 comments
Closed

onconnect hook could not use agent #10

dawei101 opened this issue Jul 10, 2016 · 3 comments

Comments

@dawei101
Copy link

https://github.com/TooTallNate/proxy/blob/master/proxy.js#L411

net.connect could not use server.agent to finish the connect request

@TooTallNate
Copy link
Owner

I'm sorry, I don't get what you mean. Can you show me some example code of what you're trying to do?

@dawei101
Copy link
Author

var server = setup(http.createServer(), {agent: SOME_SOCKS_PROXY});

When http proxy deal "CONNECT ***" request , it won't connect by "SOME_SOCKS_PROXY"


I am in china, of course my computer can not open google.
I get an socks5 proxy that could open google
If I share with friends by http proxy by your repo, they still could not open google

Because below line does not connect through its parent proxy
https://github.com/TooTallNate/proxy/blob/master/proxy.js#L411

@ghost
Copy link

ghost commented Mar 25, 2017

Because the Great Firewall automatic deny the request,it isn't software problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants