mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-18 23:28:23 +00:00
fix http return value from one service when nework list is empty
This commit is contained in:
@ -1577,7 +1577,6 @@ public:
|
||||
}
|
||||
} else if (ps[0] == "network") {
|
||||
Mutex::Lock _l(_nets_m);
|
||||
if (!_nets.empty()) {
|
||||
if (ps.size() == 1) {
|
||||
// Return [array] of all networks
|
||||
|
||||
@ -1605,10 +1604,6 @@ public:
|
||||
fprintf(stderr, "not found\n");
|
||||
scode = 404;
|
||||
}
|
||||
} else {
|
||||
fprintf(stderr, "_nets is empty??\n");
|
||||
scode = 500;
|
||||
}
|
||||
} else if (ps[0] == "peer") {
|
||||
ZT_PeerList *pl = _node->peers();
|
||||
if (pl) {
|
||||
|
Reference in New Issue
Block a user