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

Downloader support socks5 proxy #154

Open
mnt-github opened this issue Nov 1, 2023 · 3 comments
Open

Downloader support socks5 proxy #154

mnt-github opened this issue Nov 1, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request question Further information is requested
Projects

Comments

@mnt-github
Copy link

Do Downloader support socks5 proxy?
How I do use socks5 proxy?

@bezzad
Copy link
Owner

bezzad commented Nov 2, 2023

Hi @mnt-github,
You can add your proxy config inside the DownloadConfiguration object like this:

var config = new DownloadConfiguration {               
        ParallelDownload = true,   
        ParallelCount = 8,          
        Timeout = 3000,                           
        RequestConfiguration =
        {
            // config and customize request headers
            Accept = "*/*",
            CookieContainer = cookies,           
            Proxy = new WebProxy(new Uri($"socks5://127.0.0.1:9050"))
        }
};

@bezzad bezzad self-assigned this Nov 2, 2023
@bezzad bezzad added the question Further information is requested label Nov 2, 2023
@mnt-github
Copy link
Author

Thanks @bezzad.
Which .NET Framework version does the above example work on?
I'm working on 4.7.2.
Downloader don't recognize socks5 proxy.

@bezzad
Copy link
Owner

bezzad commented Nov 26, 2023

@mnt-github .Net 4.5.2 and above and all of .Net Core versions

@bezzad bezzad added the enhancement New feature or request label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
Downloader
Awaiting triage
Development

No branches or pull requests

2 participants