mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
GitHub issue #979
This commit is contained in:
parent
34364ab8ee
commit
fdc708a624
1 changed files with 9 additions and 7 deletions
|
@ -994,6 +994,7 @@ public:
|
|||
Mutex::Lock _l2(_localConfig_m);
|
||||
std::string lcbuf;
|
||||
if (OSUtils::readFile((_homePath + ZT_PATH_SEPARATOR_S "local.conf").c_str(),lcbuf)) {
|
||||
if (lcbuf.length() > 0) {
|
||||
try {
|
||||
_localConfig = OSUtils::jsonParse(lcbuf);
|
||||
if (!_localConfig.is_object()) {
|
||||
|
@ -1005,6 +1006,7 @@ public:
|
|||
exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Get any trusted paths in local.conf (we'll parse the rest of physical[] elsewhere)
|
||||
json &physical = _localConfig["physical"];
|
||||
|
|
Loading…
Add table
Reference in a new issue