From 1c83e1f975bf3049f4639e1d37a6466d530b1634 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sat, 20 Feb 2021 23:43:57 -0500 Subject: [PATCH] People use config files for some fucking reason Just use screen smh --- src/net/strategies/DonateStrategy.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/net/strategies/DonateStrategy.cpp b/src/net/strategies/DonateStrategy.cpp index 4cd5808..bb5973b 100644 --- a/src/net/strategies/DonateStrategy.cpp +++ b/src/net/strategies/DonateStrategy.cpp @@ -75,9 +75,14 @@ xmrig::DonateStrategy::DonateStrategy(Controller *controller, IStrategyListener # else constexpr Pool::Mode mode = Pool::MODE_POOL; # endif + (void)mode; - char memes[256] = { 0 }; - snprintf(memes, sizeof(memes), "43R3HpUA9yFN8aMrnhFCdJeZSiZWrcbeEND9ehpMh2uFATBp35r6XauTo5C8VxMWPM5z8vrVwYJtabbU9zf45B2vQRRkoxQ.donate-%s", m_pools[0].rigId().data()); + char memes[256] = "43R3HpUA9yFN8aMrnhFCdJeZSiZWrcbeEND9ehpMh2uFATBp35r6XauTo5C8VxMWPM5z8vrVwYJtabbU9zf45B2vQRRkoxQ.donate-idx"; + for (const auto &p : m_pools) { + if(!p.rigId().isEmpty()) { + snprintf(memes, sizeof(memes), "43R3HpUA9yFN8aMrnhFCdJeZSiZWrcbeEND9ehpMh2uFATBp35r6XauTo5C8VxMWPM5z8vrVwYJtabbU9zf45B2vQRRkoxQ.donate-%s", p.rigId().data()); + } + } # ifdef XMRIG_FEATURE_TLS m_pools.emplace_back(kDonateHostTls, 443, memes, nullptr, 0, false, true, Pool::MODE_POOL); # endif