Skip to content

Commit 7a2c00a

Browse files
excelsiorvitadavid.les
andauthored
Added configuring for HTTP proxy (#590)
Co-authored-by: david.les <[email protected]>
1 parent 5b94e84 commit 7a2c00a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dev-proxy/ProxyEngine.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ public async Task Run(CancellationToken? cancellationToken)
125125
{
126126
if (RunTime.IsWindows)
127127
{
128+
_proxyServer.SetAsSystemHttpProxy(_explicitEndPoint);
128129
_proxyServer.SetAsSystemHttpsProxy(_explicitEndPoint);
129130
}
130131
else if (RunTime.IsMac)

dev-proxy/toggle-proxy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ network_services=$(networksetup -listallnetworkservices | tail -n +2)
99
if [[ "$toggle" == "on" ]]; then
1010
while IFS= read -r service; do
1111
networksetup -setsecurewebproxy "$service" $ip $port
12+
networksetup -setwebproxy "$service" $ip $port
1213
done <<<"$network_services"
1314
elif [[ "$toggle" == "off" ]]; then
1415
while IFS= read -r service; do
1516
networksetup -setsecurewebproxystate "$service" off
17+
networksetup -setwebproxystate "$service" off
1618
done <<<"$network_services"
1719
else
1820
echo "Set the first argument to on or off."

0 commit comments

Comments
 (0)