bezzad / Downloader

Fast, cross-platform and reliable multipart downloader with asynchronous progress events for .NET applications.
MIT License
1.25k stars 193 forks source link

ipv6 Download error the ssl connection could not be established, see inner exception #149

Open dongzhaosheng73 opened 11 months ago

dongzhaosheng73 commented 11 months ago

An ssl exception is reported when the ipv6 address is resolved

https://cdn.excean.com/opmnq/resources/1690445421274461.vdi

bezzad commented 8 months ago

Please provide the downloader config info. I downloaded this link with no issues.

yanhan-dev commented 5 months ago

Thank you very much bezzad, thank you for providing such a useful download library. I also encountered the same error "the ssl connection could not be established see inner exception". About 1% of my users will have this error. In my case There are no errors when debugging on the local computer. download link https://dl.nextbns.com/Launcher/2.4.8.0/Launcher.zip

this is my config

IDownload download = DownloadBuilder.New()
    .WithUrl(url)
    .WithDirectory(directory)
    .WithFileName(fileName)
    .WithConfiguration(new DownloadConfiguration()
    {
        ChunkCount = 2,
        ParallelDownload = true
    })
    .Build();

this is stackoverflow solution https://stackoverflow.com/questions/52939211/the-ssl-connection-could-not-be-established but, Download does not support configuring ServerCertificateValidationCallback thanks