More tap work -- DHCP configuration and such.
This commit is contained in:
parent
1c88a518cf
commit
cd907a7662
4 changed files with 71 additions and 0 deletions
|
@ -175,6 +175,7 @@ void Network::setConfiguration(const Network::Config &conf)
|
|||
_lastConfigUpdate = Utils::now();
|
||||
|
||||
_tap->setIps(conf.staticAddresses());
|
||||
_tap->setDisplayName((std::string("ZeroTier One [") + conf.name() + "]").c_str());
|
||||
|
||||
std::string confPath(_r->homePath + ZT_PATH_SEPARATOR_S + "networks.d" + ZT_PATH_SEPARATOR_S + toString() + ".conf");
|
||||
if (!Utils::writeFile(confPath.c_str(),conf.toString())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue