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