Browse Source

fully switch to Geosite

tags/4.2.0.0
Student Main 4 years ago
parent
commit
48a31bbb04
7 changed files with 6 additions and 7300 deletions
  1. +1
    -1
      shadowsocks-csharp/Controller/Service/GeositeUpdater.cs
  2. +4
    -7
      shadowsocks-csharp/Controller/Service/PACDaemon.cs
  3. +1
    -8
      shadowsocks-csharp/Controller/ShadowsocksController.cs
  4. +0
    -7250
      shadowsocks-csharp/Data/default-abp-rule.js
  5. +0
    -30
      shadowsocks-csharp/Properties/Resources.Designer.cs
  6. +0
    -3
      shadowsocks-csharp/Properties/Resources.resx
  7. +0
    -1
      shadowsocks-csharp/shadowsocks-csharp.csproj

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

@@ -97,7 +97,7 @@ namespace Shadowsocks.Controller
Error?.Invoke(null, new ErrorEventArgs(ex));
}
};
http.DownloadStringAsync(new Uri(gfwListUrl));
http.DownloadDataAsync(new Uri(gfwListUrl));
}




+ 4
- 7
shadowsocks-csharp/Controller/Service/PACDaemon.cs View File

@@ -42,7 +42,7 @@ namespace Shadowsocks.Controller
{
if (!File.Exists(PAC_FILE))
{
File.WriteAllText(PAC_FILE, Resources.default_abp_rule + Resources.abp_js);
GeositeUpdater.MergeAndWritePACFile();
}
return PAC_FILE;
}
@@ -58,14 +58,11 @@ namespace Shadowsocks.Controller
internal string GetPACContent()
{
if (File.Exists(PAC_FILE))
{
return File.ReadAllText(PAC_FILE, Encoding.UTF8);
}
else
if (!File.Exists(PAC_FILE))
{
return Resources.default_abp_rule + Resources.abp_js;
GeositeUpdater.MergeAndWritePACFile();
}
return File.ReadAllText(PAC_FILE, Encoding.UTF8);
}


+ 1
- 8
shadowsocks-csharp/Controller/ShadowsocksController.cs View File

@@ -622,14 +622,7 @@ namespace Shadowsocks.Controller
private static readonly IEnumerable<char> IgnoredLineBegins = new[] { '!', '[' };
private void PacDaemon_UserRuleFileChanged(object sender, EventArgs e)
{
if (!File.Exists(Utils.GetTempPath("gfwlist.txt")))
{
UpdatePACFromGFWList();
}
else
{
GeositeUpdater.MergeAndWritePACFile();
}
GeositeUpdater.MergeAndWritePACFile();
UpdateSystemProxy();
}


+ 0
- 7250
shadowsocks-csharp/Data/default-abp-rule.js
File diff suppressed because it is too large
View File


+ 0
- 30
shadowsocks-csharp/Properties/Resources.Designer.cs View File

@@ -84,36 +84,6 @@ namespace Shadowsocks.Properties {
}
}
/// <summary>
/// 查找类似 var __USERRULES__ = [];
///var __RULES__ = [
/// &quot;|http://85.17.73.31/&quot;,
/// &quot;||agnesb.fr&quot;,
/// &quot;||akiba-web.com&quot;,
/// &quot;||altrec.com&quot;,
/// &quot;||angela-merkel.de&quot;,
/// &quot;||angola.org&quot;,
/// &quot;||apartmentratings.com&quot;,
/// &quot;||apartments.com&quot;,
/// &quot;||arena.taipei&quot;,
/// &quot;||asianspiss.com&quot;,
/// &quot;||assimp.org&quot;,
/// &quot;||athenaeizou.com&quot;,
/// &quot;||azubu.tv&quot;,
/// &quot;||bankmobilevibe.com&quot;,
/// &quot;||banorte.com&quot;,
/// &quot;||bash-hackers.org&quot;,
/// &quot;||beeg.com&quot;,
/// &quot;||global.bing.com&quot;,
/// &quot;||bloombergview.com&quot;,
/// &quot; [字符串的其余部分被截断]&quot;; 的本地化字符串。
/// </summary>
internal static string default_abp_rule {
get {
return ResourceManager.GetString("default_abp_rule", resourceCulture);
}
}
/// <summary>
/// 查找 System.Byte[] 类型的本地化资源。
/// </summary>


+ 0
- 3
shadowsocks-csharp/Properties/Resources.resx View File

@@ -121,9 +121,6 @@
<data name="abp_js" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Data\abp.js;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;gb2312</value>
</data>
<data name="default_abp_rule" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Data\default-abp-rule.js;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="dlc_dat" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\data\dlc.dat;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>


+ 0
- 1
shadowsocks-csharp/shadowsocks-csharp.csproj View File

@@ -302,7 +302,6 @@
</None>
<None Include="Resources\ssw128.png" />
<Content Include="Data\abp.js" />
<Content Include="Data\default-abp-rule.js" />
<Content Include="Data\privoxy_conf.txt" />
<Content Include="Data\user-rule.txt" />
<None Include="FodyWeavers.xml">


Loading…
Cancel
Save