Deducing if to perform update check from update url configuration

This commit is contained in:
rockstardev
2020-08-03 03:16:29 -05:00
parent ce87d2e45c
commit 16eedf4153
6 changed files with 7 additions and 8 deletions

View File

@@ -176,8 +176,7 @@ namespace BTCPayServer.Configuration
SocksEndpoint = endpoint;
}
UpdateCheck = conf.GetOrDefault<bool>("updatecheck", false);
UpdateUrl = conf.GetOrDefault<Uri>("updateurl", new Uri("https://api.github.com/repos/btcpayserver/btcpayserver/releases/latest"));
UpdateUrl = conf.GetOrDefault<Uri>("updateurl", null);
var sshSettings = ParseSSHConfiguration(conf);
if ((!string.IsNullOrEmpty(sshSettings.Password) || !string.IsNullOrEmpty(sshSettings.KeyFile)) && !string.IsNullOrEmpty(sshSettings.Server))
@@ -303,7 +302,6 @@ namespace BTCPayServer.Configuration
set;
}
public string TorrcFile { get; set; }
public bool UpdateCheck { get; set; }
public Uri UpdateUrl { get; set; }
}
}