mirror of https://github.com/BOINC/boinc.git
client: use #define DEFAULT_VERSION_CHECK_URL instead of NVC_CONFIG::get_default_version_check_url()
This commit is contained in:
parent
a4eccce899
commit
064d0e80fc
|
@ -180,7 +180,7 @@ CLIENT_STATE::CLIENT_STATE()
|
|||
gui_rpc_unix_domain = false;
|
||||
new_version_check_time = 0;
|
||||
all_projects_list_check_time = 0;
|
||||
client_version_check_url = nvc_config.get_default_version_check_url();
|
||||
client_version_check_url = DEFAULT_VERSION_CHECK_URL;
|
||||
detach_console = false;
|
||||
#ifdef SANDBOX
|
||||
g_use_sandbox = true; // User can override with -insecure command-line arg
|
||||
|
|
|
@ -39,14 +39,10 @@ NVC_CONFIG::NVC_CONFIG() {
|
|||
void NVC_CONFIG::defaults() {
|
||||
client_download_url = "https://boinc.berkeley.edu/download.php";
|
||||
client_new_version_name = "";
|
||||
client_version_check_url = get_default_version_check_url();
|
||||
client_version_check_url = DEFAULT_VERSION_CHECK_URL;
|
||||
network_test_url = "https://www.google.com/";
|
||||
};
|
||||
|
||||
std::string NVC_CONFIG::get_default_version_check_url() {
|
||||
return "https://boinc.berkeley.edu/download.php?xml=1";
|
||||
}
|
||||
|
||||
int NVC_CONFIG::parse(FILE* f) {
|
||||
MIOFILE mf;
|
||||
XML_PARSER xp(&mf);
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include "gui_http.h"
|
||||
|
||||
#define DEFAULT_VERSION_CHECK_URL "https://boinc.berkeley.edu/download.php?xml=1"
|
||||
|
||||
struct GET_CURRENT_VERSION_OP: public GUI_HTTP_OP {
|
||||
int error_num;
|
||||
|
||||
|
@ -42,7 +44,6 @@ struct NVC_CONFIG {
|
|||
|
||||
NVC_CONFIG();
|
||||
void defaults();
|
||||
std::string get_default_version_check_url(void);
|
||||
int parse(FILE*);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue