dotnet/runtime

Use system proxy configuration on macOS

Open

#24,799 opened on Jan 25, 2018

View on GitHub
 (17 comments) (1 reaction) (0 assignees)C# (5,445 forks)batch import
area-System.Net.Httpenhancementhelp wantedos-mac-os-x

Repository metrics

Stars
 (17,886 stars)
PR merge metrics
 (Avg merge 12d 11h) (661 merged PRs in 30d)

Description

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 

Contributor guide