mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-21 10:01:46 +00:00
Fix one more old NetworkConfig bit of code.
This commit is contained in:
parent
31db6f8f36
commit
8a9762331f
@ -284,10 +284,9 @@ bool Topology::isUpstream(const Identity &id) const
|
||||
return true;
|
||||
std::vector< SharedPtr<Network> > nws(RR->node->allNetworks());
|
||||
for(std::vector< SharedPtr<Network> >::const_iterator nw(nws.begin());nw!=nws.end();++nw) {
|
||||
SharedPtr<NetworkConfig> nc((*nw)->config2());
|
||||
if (nc) {
|
||||
for(std::vector< std::pair<Address,InetAddress> >::const_iterator r(nc->relays().begin());r!=nc->relays().end();++r) {
|
||||
if (r->first == id.address())
|
||||
if ((*nw)->hasConfig()) {
|
||||
for(unsigned int r=0;r<(*nw)->config().staticDeviceCount();++r) {
|
||||
if ((((*nw)->config().staticDevice(r).flags & ZT_NETWORK_STATIC_DEVICE_IS_RELAY) != 0)&&((*nw)->config().staticDevice(r).address == id.address().toInt()))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user