Skip to content

Commit

Permalink
Update the GFWList via IPv6Loopback when available
Browse files Browse the repository at this point in the history
  • Loading branch information
celeron533 committed Aug 28, 2019
1 parent 5af4f83 commit f38205a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shadowsocks-csharp/Controller/Service/GfwListUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ public void UpdatePACFromGFWList(Configuration config)
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));
Expand Down

0 comments on commit f38205a

Please sign in to comment.