mirror of
https://github.com/anope/anope.git
synced 2026-06-28 05:56:37 +02:00
Fix reading the settings in m_dns.
This commit is contained in:
+5
-10
@@ -1011,12 +1011,6 @@ class ModuleDNS : public Module
|
||||
{
|
||||
MyManager manager;
|
||||
|
||||
Anope::string nameserver;
|
||||
Anope::string ip;
|
||||
int port;
|
||||
|
||||
std::vector<std::pair<Anope::string, short> > notify;
|
||||
|
||||
public:
|
||||
ModuleDNS(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR), manager(this)
|
||||
{
|
||||
@@ -1039,14 +1033,15 @@ class ModuleDNS : public Module
|
||||
{
|
||||
Configuration::Block *block = conf->GetModule(this);
|
||||
|
||||
nameserver = block->Get<const Anope::string>("nameserver", "127.0.0.1");
|
||||
timeout = block->Get<time_t>("timeout", "5");
|
||||
ip = block->Get<const Anope::string>("ip", "0.0.0.0");
|
||||
port = block->Get<int>("port", "53");
|
||||
Anope::string nameserver = block->Get<const Anope::string>("nameserver", "127.0.0.1");
|
||||
timeout = block->Get<time_t>("timeout", "5");
|
||||
Anope::string ip = block->Get<const Anope::string>("ip", "0.0.0.0");
|
||||
int port = block->Get<int>("port", "53");
|
||||
admin = block->Get<const Anope::string>("admin", "admin@example.com");
|
||||
nameservers = block->Get<const Anope::string>("nameservers", "ns1.example.com");
|
||||
refresh = block->Get<int>("refresh", "3600");
|
||||
|
||||
std::vector<std::pair<Anope::string, short> > notify;
|
||||
for (int i = 0; i < block->CountBlock("notify"); ++i)
|
||||
{
|
||||
Configuration::Block *n = block->GetBlock("notify", i);
|
||||
|
||||
Reference in New Issue
Block a user