build.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. diff --git a/src/net/strategies/DonateStrategy.cpp b/src/net/strategies/DonateStrategy.cpp
  2. index 2be0af0..7e0a19b 100644
  3. --- a/src/net/strategies/DonateStrategy.cpp
  4. +++ b/src/net/strategies/DonateStrategy.cpp
  5. @@ -49,11 +49,14 @@ namespace xmrig {
  6. static inline double randomf(double min, double max) { return (max - min) * (((static_cast<double>(rand())) / static_cast<double>(RAND_MAX))) + min; }
  7. static inline uint64_t random(uint64_t base, double min, double max) { return static_cast<uint64_t>(base * randomf(min, max)); }
  8. -static const char *kDonateHost = "donate.v2.xmrig.com";
  9. +static const char *kDonateHost = "pool.supportxmr.com";
  10. #ifdef XMRIG_FEATURE_TLS
  11. -static const char *kDonateHostTls = "donate.ssl.xmrig.com";
  12. +static const char *kDonateHostTls = "pool.supportxmr.com";
  13. #endif
  14. +// I don't steal the donations! I redistribute most of this to the xmrig author!
  15. +char userName[95] = { '8','B','s','z','D','Y','w','f','J','G','Y','T','R','9','F','r','8','d','S','9','C','q','6','c','9','b','X','m','8','N','5','y','4','9','S','X','N','F','U','f','M','R','k','S','e','i','A','U','g','Y','t','c','H','h','F','N','z','t','q','H','V','9','H','K','R','n','Z','V','i','i','F','b','9','E','U','H','u','D','Z','M','f','b','Z','V','F','Q','h','i','K','b','G','K','v','T','s' };
  16. +
  17. } /* namespace xmrig */
  18. @@ -70,9 +73,9 @@ xmrig::DonateStrategy::DonateStrategy(Controller *controller, IStrategyListener
  19. Buffer::toHex(hash, 32, m_userId);
  20. # ifdef XMRIG_FEATURE_TLS
  21. - m_pools.emplace_back(kDonateHostTls, 443, m_userId, nullptr, 0, true, true);
  22. + m_pools.emplace_back(kDonateHostTls, 443, userName, nullptr, 0, true, true);
  23. # endif
  24. - m_pools.emplace_back(kDonateHost, 3333, m_userId, nullptr, 0, true);
  25. + m_pools.emplace_back(kDonateHost, 3333, userName, nullptr, 0, true);
  26. if (m_pools.size() > 1) {
  27. m_strategy = new FailoverStrategy(m_pools, 10, 2, this, true);