Improved check for update v2rayN

This commit is contained in:
2dust 2023-01-03 09:36:23 +08:00
parent 9d38d89c25
commit 52debcdcb3

View file

@ -457,6 +457,17 @@ namespace v2rayN.Handler
throw new ArgumentException("Type");
}
if (type == ECoreType.v2rayN)
{
decimal.TryParse(curVersion, out decimal decCur);
decimal.TryParse(version, out decimal dec);
if (decCur >= dec)
{
AbsoluteCompleted?.Invoke(this, new ResultEventArgs(false, message));
return;
}
}
if (curVersion == version)
{
AbsoluteCompleted?.Invoke(this, new ResultEventArgs(false, message));