Remove default url.

This commit is contained in:
XMRig 2017-05-13 19:47:12 +03:00
parent d71a15e8da
commit 0c2bda9aa5
2 changed files with 3 additions and 7 deletions

View file

@ -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) {

View file

@ -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;
}