Browse Source

Remove http:// part in proxy host name.

Microsoft Docs is misleading, as always. dotnet/samples#1644
tags/4.2.1.0
Kexy Biscuit GitHub 5 years ago
parent
commit
e2f1564b6d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      shadowsocks-csharp/Controller/Service/GfwListUpdater.cs

+ 2
- 2
shadowsocks-csharp/Controller/Service/GfwListUpdater.cs View File

@@ -95,8 +95,8 @@ namespace Shadowsocks.Controller
{
http.Proxy = new WebProxy(
config.isIPv6Enabled
? $"http://[{IPAddress.IPv6Loopback.ToString()}]"
: $"http://{IPAddress.Loopback.ToString()}",
? $"[{IPAddress.IPv6Loopback.ToString()}]"
: IPAddress.Loopback.ToString(),
config.localPort);
}
http.DownloadStringCompleted += http_DownloadStringCompleted;


Loading…
Cancel
Save