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

[Question] socks5 → http #655

Open
nicoandmee opened this issue Jan 31, 2025 · 1 comment
Open

[Question] socks5 → http #655

nicoandmee opened this issue Jan 31, 2025 · 1 comment

Comments

@nicoandmee
Copy link

nicoandmee commented Jan 31, 2025

Sorry for my ignorance in advance. My use-case is as follows:
Input: socks5://user:pass@host:port

I wish to "convert" this to an HTTP proxy. That is, something like:

curl -x 'localhost:1337` ipinfo.io/json

提前为我的无知道歉。我的使用案例如下:
输入:socks5://user:pass@host:port

我希望将其“转换”为一个 HTTP 代理。也就是说,类似于:

curl -x 'localhost:1337' ipinfo.io/json  

Would resolve (including dns query) using the aforementioned SOCKS5. I know it is possible, but how can I conceptualize this within ghost and its abstractions? Simplest way?

Thank you!! 💙 🙏

@egg1234
Copy link

egg1234 commented Jan 31, 2025

你需要在本机另外运行一个进程:

./gost -L=http://:3000 -F=socks5://user:pass@host:port

然后:

curl -x http://127.0.0.1:3000 https://ipinfo.io/json

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

2 participants