From bb42416ced75e2edacb845be888b349d15843ff2 Mon Sep 17 00:00:00 2001 From: mossimo Date: Tue, 13 Jul 2021 18:27:16 +0800 Subject: [PATCH] fix --- src/ST.Client/Services/Implementation/HttpProxyServiceImpl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ST.Client/Services/Implementation/HttpProxyServiceImpl.cs b/src/ST.Client/Services/Implementation/HttpProxyServiceImpl.cs index 022d092ef..c15b9246e 100644 --- a/src/ST.Client/Services/Implementation/HttpProxyServiceImpl.cs +++ b/src/ST.Client/Services/Implementation/HttpProxyServiceImpl.cs @@ -506,9 +506,9 @@ namespace System.Application.Services.Implementation if (item.Trim().Length > 0) { //shellContent.AppendLine($"networksetup -setsocksfirewallproxy '{item}' '{explicitProxyEndPoint.IpAddress}' {explicitProxyEndPoint.Port}"); //shellContent.AppendLine($"networksetup -setsocksfirewallproxystate '{item}' on"); - shellContent.AppendLine($"networksetup -setwebproxy '{item}' 'http://{explicitProxyEndPoint.IpAddress}' {explicitProxyEndPoint.Port}"); + shellContent.AppendLine($"networksetup -setwebproxy '{item}' '127.0.0.1' {explicitProxyEndPoint.Port}"); shellContent.AppendLine($"networksetup -setwebproxystate '{item}' on"); - shellContent.AppendLine($"networksetup -setsecurewebproxy '{item}' 'https://{explicitProxyEndPoint.IpAddress}' {explicitProxyEndPoint.Port}"); + shellContent.AppendLine($"networksetup -setsecurewebproxy '{item}' '127.0.0.1' {explicitProxyEndPoint.Port}"); shellContent.AppendLine($"networksetup -setsecurewebproxystate '{item}' on"); } }