GitHub issue #979

This commit is contained in:
Adam Ierymenko 2019-08-02 13:59:03 -07:00
parent 34364ab8ee
commit fdc708a624

View file

@ -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"];