Browse Source

Update the GFWList via IPv6Loopback when available

tags/4.1.8.0
celeron533 5 years ago
parent
commit
f38205a8f8
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      shadowsocks-csharp/Controller/Service/GfwListUpdater.cs

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

@@ -93,7 +93,9 @@ namespace Shadowsocks.Controller
WebClient http = new WebClient();
if (config.enabled)
{
http.Proxy = new WebProxy(IPAddress.Loopback.ToString(), config.localPort);
http.Proxy = new WebProxy(
config.isIPv6Enabled ? IPAddress.IPv6Loopback.ToString() : IPAddress.Loopback.ToString(),
config.localPort);
}
http.DownloadStringCompleted += http_DownloadStringCompleted;
http.DownloadStringAsync(new Uri(GFWLIST_URL));


Loading…
Cancel
Save