|
@@ -111,6 +111,8 @@ bool config_parse(Config &config, const std::string configstr,
|
|
|
sizeof(nc.pubkey));
|
|
|
} else if (!nentry.first.compare("weight")) {
|
|
|
nc.weight = nentry.second.get_value<std::uint8_t>();
|
|
|
+ } else if (!nentry.first.compare("roles")) {
|
|
|
+ nc.roles = nentry.second.get_value<std::uint8_t>();
|
|
|
} else if (!nentry.first.compare("listen")) {
|
|
|
ret &= split_host_port(nc.listenhost, nc.listenport,
|
|
|
nentry.second.get_value<std::string>());
|