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

How can I use this library to access it via socks5 proxy? #153

Open
ljh740 opened this issue Jul 17, 2024 · 3 comments
Open

How can I use this library to access it via socks5 proxy? #153

ljh740 opened this issue Jul 17, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@ljh740
Copy link

ljh740 commented Jul 17, 2024

Is your feature request related to a problem? Please describe.
I would like to make wss requests through a socks5 proxy.
For example: user:[email protected]:10086

    ///   - proxy: Host component of the URI for the proxy server.
    ///   - proxyPort: Port on which to connect to the proxy server.

I only see these two parameters, how do I set them up and use them?

Describe the solution you'd like
use it

Describe alternatives you've considered
null

@ljh740 ljh740 added the enhancement New feature or request label Jul 17, 2024
@0xTim
Copy link
Member

0xTim commented Jul 17, 2024

Pass the host components (auth details and hostname) in the proxy part and the port for the port argument

@ljh740
Copy link
Author

ljh740 commented Jul 18, 2024

Pass the host components (auth details and hostname) in the proxy part and the port for the port argument

proxy: "user:[email protected]"
proxyPort: 10086

some error

NIOPosix.NIOConnectionError(host: "user:[email protected]", port: 10086, dnsAError: Optional(NIOCore.SocketAddressError.unknown(host: "user:[email protected]", port: 10086)), dnsAAAAError: Optional(NIOCore.SocketAddressError.unknown(host: "user:[email protected]", port: 10086)), connectionErrors: [])

@0xTim
Copy link
Member

0xTim commented Jul 21, 2024

Ah ok, so looks like we'd need to do some work to convert this automatically however if you convert the auth details to an HTTP Basic Auth header and pass that to proxyHeaders that should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants