address Michael's code review (remove std::make_pair) and add note

pull/230/head
Ryan Tharp 5 years ago
parent 2e4ad12a87
commit c4c9197586

@ -1182,10 +1182,10 @@ namespace llarp
if(hiddenServiceContext.hasEndpoints())
{
llarp::LogInfo("Auto mode detected and we have endpoints");
netConfig.emplace(std::make_pair("enabled", "false"));
netConfig.emplace("enabled", "false");
return false;
}
netConfig.emplace(std::make_pair("enabled", "true"));
netConfig.emplace("enabled", "true");
}
// ev.cpp llarp_ev_add_tun now handles this
/*
@ -1388,6 +1388,7 @@ namespace llarp
Router::CreateDefaultHiddenService()
{
// fallback defaults
// To NeuroScr: why run findFree* here instead of in tun.cpp?
static const std::unordered_map< std::string,
std::function< std::string(void) > >
netConfigDefaults = {

Loading…
Cancel
Save