mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 21:13:44 +02:00
Don't require siblings field
This commit is contained in:
parent
5f1dc4b851
commit
a7d8285c3a
1 changed files with 42 additions and 40 deletions
|
@ -782,6 +782,7 @@ int main(int argc,char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (s_config.count("s_siblings") > 0) {
|
||||||
auto sibs = s_config["s_siblings"];
|
auto sibs = s_config["s_siblings"];
|
||||||
if (sibs.is_array()) {
|
if (sibs.is_array()) {
|
||||||
for(long i=0;i<(long)sibs.size();++i) {
|
for(long i=0;i<(long)sibs.size();++i) {
|
||||||
|
@ -828,6 +829,7 @@ int main(int argc,char **argv)
|
||||||
printf("FATAL: invalid JSON while parsing s_siblings section in config file: s_siblings is not a JSON array" ZT_EOL_S);
|
printf("FATAL: invalid JSON while parsing s_siblings section in config file: s_siblings is not a JSON array" ZT_EOL_S);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch ( ... ) {
|
} catch ( ... ) {
|
||||||
printf("FATAL: invalid JSON while parsing s_siblings section in config file: parse error" ZT_EOL_S);
|
printf("FATAL: invalid JSON while parsing s_siblings section in config file: parse error" ZT_EOL_S);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue