Added DNS config.
This commit is contained in:
parent
3e41bdc552
commit
2c8f7f692c
9 changed files with 130 additions and 4 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "base/io/log/Log.h"
|
||||
#include "base/io/log/Tags.h"
|
||||
#include "base/kernel/interfaces/IJsonReader.h"
|
||||
#include "base/net/dns/Dns.h"
|
||||
#include "version.h"
|
||||
|
||||
|
||||
|
@ -105,6 +106,8 @@ bool xmrig::BaseConfig::read(const IJsonReader &reader, const char *fileName)
|
|||
m_http.load(reader.getObject(kHttp));
|
||||
m_pools.load(reader);
|
||||
|
||||
Dns::set(reader.getObject(DnsConfig::kField));
|
||||
|
||||
return m_pools.active() > 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue