From 961de0f4855bda890a48090c17ffd213bdab4ef0 Mon Sep 17 00:00:00 2001 From: psychocrypt Date: Wed, 6 Dec 2017 22:24:33 +0100 Subject: fix broken pool option overwrite via CLI fix #340 With #90 the option to overwrite the pool settings via CLI options is broken. This pull request will allow to overwrite the options of the pool with the highest weighting. --- xmrstak/net/jpsock.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmrstak/net') diff --git a/xmrstak/net/jpsock.hpp b/xmrstak/net/jpsock.hpp index 9d276b7..ba5d1c8 100644 --- a/xmrstak/net/jpsock.hpp +++ b/xmrstak/net/jpsock.hpp @@ -59,6 +59,10 @@ public: inline const char* get_tls_fp() { return tls_fp.c_str(); } inline bool is_nicehash() { return nicehash; } + inline void set_pool_addr(const char* sAddr) { net_addr = sAddr; } + inline void set_user_login(const char* sLogin) { usr_login = sLogin; } + inline void set_user_passwd(const char* sPassword) { usr_pass = sPassword; } + bool get_pool_motd(std::string& strin); std::string&& get_call_error(); -- cgit v1.1