CMD params overrule config file
This commit is contained in:
parent
919be455a1
commit
c016117a95
1 changed files with 2 additions and 8 deletions
|
@ -359,6 +359,8 @@ Options::Options(int argc, char **argv) :
|
|||
{
|
||||
m_pools.push_back(new Url());
|
||||
|
||||
parseConfig(Platform::defaultConfigName());
|
||||
|
||||
int key;
|
||||
|
||||
while (true) {
|
||||
|
@ -378,10 +380,6 @@ Options::Options(int argc, char **argv) :
|
|||
}
|
||||
|
||||
#ifdef XMRIG_CC_SERVER
|
||||
if (m_ccPort == 0) {
|
||||
parseConfig(Platform::defaultConfigName());
|
||||
}
|
||||
|
||||
if (m_ccPort == 0) {
|
||||
fprintf(stderr, "No CC Server Port supplied. Exiting.\n");
|
||||
return;
|
||||
|
@ -394,10 +392,6 @@ Options::Options(int argc, char **argv) :
|
|||
}
|
||||
#endif
|
||||
|
||||
if (!m_pools[0]->isValid()) {
|
||||
parseConfig(Platform::defaultConfigName());
|
||||
}
|
||||
|
||||
if (!m_pools[0]->isValid() && (!m_ccHost || m_ccPort == 0)) {
|
||||
fprintf(stderr, "Neither pool nor CCServer URL supplied. Exiting.\n");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue