mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 18:56:24 +00:00
Fix for local.conf virtual path blacklist (ticket #594)
This commit is contained in:
parent
f18d5b2efe
commit
382dd82eb6
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user