Fix for local.conf virtual path blacklist (ticket #594)

This commit is contained in:
Joseph Henry 2017-11-27 15:31:25 -08:00
parent f18d5b2efe
commit 382dd82eb6

View File

@ -1411,7 +1411,7 @@ public:
json &blAddrs = v.value()["blacklist"]; json &blAddrs = v.value()["blacklist"];
if (blAddrs.is_array()) { if (blAddrs.is_array()) {
for(unsigned long i=0;i<blAddrs.size();++i) { for(unsigned long i=0;i<blAddrs.size();++i) {
const InetAddress ip(OSUtils::jsonString(tryAddrs[i],"").c_str()); const InetAddress ip(OSUtils::jsonString(blAddrs[i],"").c_str());
if (ip.ss_family == AF_INET) if (ip.ss_family == AF_INET)
v4b.push_back(ip); v4b.push_back(ip);
else if (ip.ss_family == AF_INET6) else if (ip.ss_family == AF_INET6)