Skip to content

Commit 21b68be

Browse files
committed
Fix update system
1 parent 2445bf5 commit 21b68be

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

SimpleDnsCrypt/Config/Global.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ public static class Global
1616
/// <summary>
1717
/// Remote URI where the application will find the update informations.
1818
/// </summary>
19-
public const string ApplicationUpdateUri64 =
19+
public const string ApplicationUpdateUri64 =
2020
"https://raw.githubusercontent.com/bitbeans/SimpleDnsCrypt/master/update64.yml";
2121

22-
/// <summary>
23-
/// The public key to validate the installer.
24-
/// </summary>
25-
public const string ApplicationUpdatePublicKey = "RWTSM+4BNNvkZPNkHgE88ETlhWa+0HDzU5CN8TvbyvmhVUcr6aQXfssV";
22+
/// <summary>
23+
/// The public key to validate the installer.
24+
/// </summary>
25+
public const string ApplicationUpdatePublicKey = "RWTSM+4BNNvkZPNkHgE88ETlhWa+0HDzU5CN8TvbyvmhVUcr6aQXfssV";
2626

2727
/// <summary>
2828
/// The folder where the dnscrypt-proxy lives in.

SimpleDnsCrypt/Helper/ApplicationUpdater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static async Task<RemoteUpdate> CheckForRemoteUpdateAsync(UpdateType minU
6161
else
6262
{
6363
// the remote version is newer as the local version
64-
if ((int)remoteUpdate.Update.Type >= (int)minUpdateType)
64+
if ((int)minUpdateType >= (int)remoteUpdate.Update.Type)
6565
{
6666
remoteUpdate.CanUpdate = true;
6767
}

0 commit comments

Comments
 (0)