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

use it as a library #31

Open
oilel opened this issue Jan 22, 2023 · 3 comments · May be fixed by #58
Open

use it as a library #31

oilel opened this issue Jan 22, 2023 · 3 comments · May be fixed by #58

Comments

@oilel
Copy link

oilel commented Jan 22, 2023

Is there any way to use it as a library instead of building to binary?

@dizda
Copy link
Owner

dizda commented Jan 23, 2023

yes sure, you can have a look at the examples/, they use it as a library.
eg. https://github.com/dizda/fast-socks5/blob/master/examples/simple_tcp_server.rs#L99

@oilel
Copy link
Author

oilel commented Jan 23, 2023

yes sure, you can have a look at the examples/, they use it as a library. eg. https://github.com/dizda/fast-socks5/blob/master/examples/simple_tcp_server.rs#L99

How to make a socks proxy? Just like Onion Routing's socks proxy, Tor Browser connects to Tor's socks port. I don't know how to modify IP routing.

@yuguorui
Copy link
Contributor

yuguorui commented Feb 1, 2024

yes sure, you can have a look at the examples/, they use it as a library. eg. https://github.com/dizda/fast-socks5/blob/master/examples/simple_tcp_server.rs#L99

How to make a socks proxy? Just like Onion Routing's socks proxy, Tor Browser connects to Tor's socks port. I don't know how to modify IP routing.

You could refer to this patch to make a socks5 proxy, I've used it to make own proxy.

If you feel these patch is useful, I would be happy to raise a PR to this origin repo.

@yuguorui yuguorui linked a pull request Dec 30, 2024 that will close this issue
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 a pull request may close this issue.

3 participants