diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp index 546d226..3c3303e 100644 --- a/xmrstak/cli/cli-miner.cpp +++ b/xmrstak/cli/cli-miner.cpp @@ -87,6 +87,7 @@ void help() cout<<" "<> userName; } @@ -214,18 +231,35 @@ void do_guided_config(bool userSetPasswd) auto& passwd = params::inst().poolPasswd; if(passwd.empty() && (!userSetPasswd)) { + prompt_once(prompted); + // clear everything from stdin to allow an empty password std::cin.clear(); std::cin.ignore(INT_MAX,'\n'); std::cout<<"- Password (mostly empty or x):"<=argc ) + { + printer::inst()->print_msg(L0, "No argument for parameter '-O/--tls-url' given"); + win_exit(); + return 1; + } + params::inst().poolURL = argv[i]; + params::inst().poolUseTls = true; } else if(opName.compare("-u") == 0 || opName.compare("--user") == 0) { diff --git a/xmrstak/params.hpp b/xmrstak/params.hpp index 2aedc38..8f1056c 100644 --- a/xmrstak/params.hpp +++ b/xmrstak/params.hpp @@ -24,6 +24,7 @@ struct params bool useNVIDIA; bool useCPU; + bool poolUseTls; std::string poolURL; std::string poolPasswd; std::string poolUsername;