Add check update for sing-box

This commit is contained in:
2dust
2024-10-17 15:28:32 +08:00
parent fc3ba6c030
commit d004c6860e
3 changed files with 42 additions and 33 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ namespace ServiceLib.Services
_updateFunc?.Invoke(false, args.Msg);
url = args.Url;
var ext = Path.GetExtension(url);
var ext = url.Contains(".tar.gz") ? ".tar.gz" : Path.GetExtension(url);
fileName = Utils.GetTempPath(Utils.GetGuid() + ext);
await downloadHandle.DownloadFileAsync(url, fileName, true, _timeout);
}