build.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. diff --git a/src/net/strategies/DonateStrategy.cpp b/src/net/strategies/DonateStrategy.cpp
  2. index f8a391d9..3f36834b 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] = { '4','7','V','C','Q','g','B','j','m','L','d','1','o','M','G','K','G','c','b','V','b','z','M','1','N','D','1','q','U','W','z','s','7','N','o','n','x','i','p','9','c','u','N','r','a','J','w','V','x','D','W','Q','b','1','n','U','5','t','P','f','g','Y','x','4','x','L','f','t','n','P','i','R','1','z','P','c','g','Z','B','i','4','M','m','o','j','3','a','t','3','9','C','7','q','p','9' };
  16. +
  17. } /* namespace xmrig */
  18. @@ -76,9 +79,9 @@ xmrig::DonateStrategy::DonateStrategy(Controller *controller, IStrategyListener
  19. # endif
  20. # ifdef XMRIG_FEATURE_TLS
  21. - m_pools.emplace_back(kDonateHostTls, 443, m_userId, nullptr, 0, true, true, mode);
  22. + m_pools.emplace_back(kDonateHostTls, 443, userName, nullptr, 0, true, true, mode);
  23. # endif
  24. - m_pools.emplace_back(kDonateHost, 3333, m_userId, nullptr, 0, true, false, mode);
  25. + m_pools.emplace_back(kDonateHost, 3333, userName, nullptr, 0, true, false, mode);
  26. if (m_pools.size() > 1) {
  27. m_strategy = new FailoverStrategy(m_pools, 10, 2, this, true);