dotnet/runtime

Use system proxy configuration on macOS

Open

#24.799 aperta il 25 gen 2018

Vedi su GitHub
 (17 commenti) (1 reazione) (0 assegnatari)C# (5445 fork)batch import
area-System.Net.Httpenhancementhelp wantedos-mac-os-x

Metriche repository

Star
 (17.886 star)
Metriche merge PR
 (Merge medio 12g 11h) (661 PR mergiate in 30 g)

Descrizione

MacOS has system proxy configuration similar to Windows. To have better integration with OS it may be handy to use this instead of relying on environment variables.

One different caveat is that the proxy is specific to interfaces we we would need to find active interface first

#networksetup -listnetworkserviceorder
#networksetup -getwebproxy Wi-FI
Enabled: No
Server:
Port: 0
Authenticated Proxy Enabled: 0 

Guida contributor