Improved check for update v2rayN
This commit is contained in:
@@ -457,6 +457,17 @@ namespace v2rayN.Handler
|
|||||||
throw new ArgumentException("Type");
|
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)
|
if (curVersion == version)
|
||||||
{
|
{
|
||||||
AbsoluteCompleted?.Invoke(this, new ResultEventArgs(false, message));
|
AbsoluteCompleted?.Invoke(this, new ResultEventArgs(false, message));
|
||||||
|
|||||||
Reference in New Issue
Block a user