mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-26 07:05:00 +03:00
Simply check the file hash value and delete the old pac file
This commit is contained in:
@@ -33,6 +33,13 @@ namespace ServiceLib.Handler
|
||||
private static async Task InitText()
|
||||
{
|
||||
var path = Path.Combine(_configPath, "pac.txt");
|
||||
|
||||
// Delete the old pac file
|
||||
if (File.Exists(path) && Utils.GetFileHash(path).Equals("b590c07280f058ef05d5394aa2f927fe"))
|
||||
{
|
||||
File.Delete(path);
|
||||
}
|
||||
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
var pac = EmbedUtils.GetEmbedText(Global.PacFileName);
|
||||
|
||||
Reference in New Issue
Block a user