mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-13 00:34:58 +03:00
Add check update for sing-box
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user