Merge pull request #555 from neuroscr/issue547-2

config.cpp can't have ifaddr/ifname set to auto like this apparently, breaks validation
This commit is contained in:
Ryan Tharp 2019-04-23 17:28:20 -07:00 committed by GitHub
commit 508be6f9fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -265,8 +265,8 @@ llarp_ensure_router_config(std::ofstream &f, std::string basepath)
f << "[network]" << std::endl;
f << "profiles=" << basepath << "profiles.dat" << std::endl;
// better to let the routers auto-configure
f << "ifaddr=auto" << std::endl;
f << "ifname=auto" << std::endl;
// f << "ifaddr=auto" << std::endl;
// f << "ifname=auto" << std::endl;
f << "enabled=true" << std::endl;
f << "exit=false" << std::endl;
f << "#exit-blacklist=tcp:25" << std::endl;
@ -349,8 +349,8 @@ llarp_ensure_client_config(std::ofstream &f, std::string basepath)
// better to set them to auto then to hard code them now
// operating environment may change over time and this will help adapt
f << "ifname=auto" << std::endl;
f << "ifaddr=auto" << std::endl;
// f << "ifname=auto" << std::endl;
// f << "ifaddr=auto" << std::endl;
// should this also be auto? or not declared?
// probably auto in case they want to set up a hidden service