KSP-CKAN / CKAN

The Comprehensive Kerbal Archive Network
https://forum.kerbalspaceprogram.com/index.php?/topic/197082-*
Other
1.98k stars 347 forks source link

[Feature] Add socks5 or http proxy support #3475

Open villivateur opened 2 years ago

villivateur commented 2 years ago

Problem

Sometimes we have no Internet access and need proxy to download from GitHub or mod providers. Especially in China.

Suggestions

Please allow us to add proxy settings in ckan setting. So we can use proxy to download files.

Thank you.

DasSkelett commented 2 years ago

Did you already try setting a proxy through the system settings? According to the .NET docs, the WebClient class, which we use for downloads, should automatically make use of it:

The proxy is set by the system using configuration files and the Internet Explorer Local Area Network settings. For information on automatic proxy detection, see Automatic Proxy Detection.

https://docs.microsoft.com/en-us/dotnet/api/system.net.webclient.proxy?view=netframework-4.5#System_Net_WebClient_Proxy

I assume you are on Windows?

villivateur commented 2 years ago

Did you already try setting a proxy through the system settings? According to the .NET docs, the WebClient class, which we use for downloads, should automatically make use of it:

The proxy is set by the system using configuration files and the Internet Explorer Local Area Network settings. For information on automatic proxy detection, see Automatic Proxy Detection.

https://docs.microsoft.com/en-us/dotnet/api/system.net.webclient.proxy?view=netframework-4.5#System_Net_WebClient_Proxy

I assume you are on Windows?

Thank you for your reply. But I only want ckan to use proxy, not all applications on my Windows.