Temporary fix for [dns]bind and [dns]local-dns

pull/1248/head
Stephen Shelton 4 years ago
parent 936fbb2424
commit cdd4439cff
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -165,16 +165,25 @@ namespace llarp
// TODO: make sure this is documented
// TODO: refactor to remove freehand options map
conf.defineOption<std::string>(
"network", "upstream-dns", false, true, "", [this](std::string arg) {
m_options.emplace("upstream-dns", std::move(arg));
});
conf.defineOption<std::string>("dns", "upstream", false, true, "", [this](std::string arg) {
m_options.emplace("upstream", std::move(arg));
});
// TODO: the m_options is fixed in another branch/PR, this will conflict when merged
// you're welcome
// TODO: make sure this is documented
conf.defineOption<std::string>(
"network", "local-dns", false, true, "", [this](std::string arg) {
m_options.emplace("local-dns", std::move(arg));
});
conf.defineOption<std::string>("dns", "local-dns", false, true, "", [this](std::string arg) {
m_options.emplace("local-dns", arg);
m_options.emplace("bind", arg);
});
// TODO: we'll only support "bind" going forward, for now make sure bind and local-dns are
// equivalent
conf.defineOption<std::string>("dns", "bind", false, true, "", [this](std::string arg) {
m_options.emplace("local-dns", arg);
m_options.emplace("bind", arg);
});
}
LinksConfig::LinkInfo

Loading…
Cancel
Save