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

naiveproxy as a library #94

Closed
ghost opened this issue Jun 27, 2020 · 4 comments
Closed

naiveproxy as a library #94

ghost opened this issue Jun 27, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 27, 2020

I am thinking about the feasibility to use naiveproxy as a HTTP or TCP library instead of a standalone proxy program.
Traditional proxy tools like v2ray implement their own protocol with websocket and they can benefit from naiveproxy by replacing their websocket implementation.
v2ray/discussion#754
v2ray/v2ray-core#2098

@klzgrad
Copy link
Owner

klzgrad commented Jun 27, 2020

Library, yes. Integrate with whom? With what interface?

@ghost
Copy link
Author

ghost commented Jun 27, 2020

How about something that mimics the WebSocket API in JavaScript
https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API

WebSocket is better supported by CDNs and load-balancing systems, compared to HTTP proxy protocol.

Also, with CDN you can distribute your traffic into many IPs, which makes them look like normal browsing behavior. I think it's a very appealing feature, since the header and traffic shaped by naiveproxy is very Chrome already.

@klzgrad
Copy link
Owner

klzgrad commented Jun 27, 2020

Websocket and CDN fronting are two approaches that this project is designed against.

If someone is prepared to integrate such a library into certain apps I can help him, otherwise I'm not very motivated to work on this in a vacuum.

@ghost ghost mentioned this issue Jun 28, 2020
@klzgrad
Copy link
Owner

klzgrad commented Jun 28, 2020

There is no actual commitment in the community to working on a library split from naive proxy.

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

No branches or pull requests

1 participant