mirror of
https://github.com/netchx/netch.git
synced 2026-03-26 18:49:46 +08:00
refactor: move china_ip_list to rule
This commit is contained in:
@@ -188,19 +188,6 @@ namespace Netch.Controllers
|
||||
}
|
||||
);
|
||||
|
||||
if (_savedMode.BypassChina)
|
||||
{
|
||||
Logging.Info("绕行 → 中国 IP");
|
||||
|
||||
foreach (var str in File.ReadAllLines("bin\\china_ip_list", Encoding.UTF8))
|
||||
{
|
||||
if (IPNetwork.TryParse(str, out var entry))
|
||||
{
|
||||
_directIPs.Add(entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Logging.Info("绕行 → 规则 IP");
|
||||
_directIPs.AddRange(_savedMode.Rule.Select(IPNetwork.Parse));
|
||||
|
||||
|
||||
2
binaries
2
binaries
Submodule binaries updated: 896c0e4406...fb15d4bffd
2
modes
2
modes
Submodule modes updated: 68cf33c476...4767717e86
Reference in New Issue
Block a user