From 0c2bda9aa5f0b3b1f93611e0169c5e77b7b7ca49 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sat, 13 May 2017 19:47:12 +0300 Subject: [PATCH] Remove default url. --- options.c | 8 ++------ xmrig.c | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/options.c b/options.c index a97c71f90..5445cd1cb 100644 --- a/options.c +++ b/options.c @@ -430,12 +430,8 @@ void parse_cmdline(int argc, char *argv[]) { } if (!opt_url) { - opt_url = strdup("stratum+tcp://proxy.xmrig.com:443"); - opt_keepalive = true; - - if (!opt_backup_url) { - opt_backup_url = strdup("stratum+tcp://failover.xmrig.com:80"); - } + applog_notime(LOG_ERR, "No pool URL supplied. Exiting.\n", argv[0]); + proper_exit(1); } if (!opt_userpass) { diff --git a/xmrig.c b/xmrig.c index 6d938c77c..5aeb04c5c 100644 --- a/xmrig.c +++ b/xmrig.c @@ -446,7 +446,7 @@ static void switch_stratum() { static bool want_donate = false; if (g_want_donate && !want_donate) { - stratum_ctx->url = "stratum+tcp://donate.xmrig.com:443"; + stratum_ctx->url = opt_algo == ALGO_CRYPTONIGHT ? "stratum+tcp://donate.xmrig.com:443" : "stratum+tcp://donate.xmrig.com:3333"; applog(LOG_NOTICE, "Switching to dev pool"); want_donate = true; }