diff options
author | Unknown <fireice-uk@users.noreply.github.com> | 2017-12-07 15:30:15 +0000 |
---|---|---|
committer | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-12-08 11:35:18 +0000 |
commit | 065f420f8939321a35754d033e68be72b2f9c8e2 (patch) | |
tree | d1b4e8fa1bad9e55f8bbf8dcabdad9223c4df63e /xmrstak/cli | |
parent | c4ae72ecfb09218171197dba012ce485b5cfc222 (diff) | |
download | xmr-stak-065f420f8939321a35754d033e68be72b2f9c8e2.zip xmr-stak-065f420f8939321a35754d033e68be72b2f9c8e2.tar.gz |
Disallow sending of username / pass to unspecifed pool
Diffstat (limited to 'xmrstak/cli')
-rw-r--r-- | xmrstak/cli/cli-miner.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp index be9b917..2c44ffc 100644 --- a/xmrstak/cli/cli-miner.cpp +++ b/xmrstak/cli/cli-miner.cpp @@ -479,6 +479,13 @@ int main(int argc, char *argv[]) } else if(opName.compare("-u") == 0 || opName.compare("--user") == 0) { + if(params::inst().poolURL.empty()) + { + printer::inst()->print_msg(L0, "Pool address has to be set if you want to specify username and password."); + win_exit(); + return 1; + } + ++i; if( i >=argc ) { @@ -490,6 +497,13 @@ int main(int argc, char *argv[]) } else if(opName.compare("-p") == 0 || opName.compare("--pass") == 0) { + if(params::inst().poolURL.empty()) + { + printer::inst()->print_msg(L0, "Pool address has to be set if you want to specify username and password."); + win_exit(); + return 1; + } + ++i; if( i >=argc ) { |