mirror of https://github.com/aredn/aredn.git
Rework DTD blocking detection
This commit is contained in:
parent
e0498ca856
commit
b26017c2d1
|
@ -647,12 +647,11 @@ function lqm()
|
||||||
if track.type == "RF" then
|
if track.type == "RF" then
|
||||||
|
|
||||||
-- If we have a direct dtd connection to this device, make sure we use that
|
-- If we have a direct dtd connection to this device, make sure we use that
|
||||||
|
track.blocks.dtd = false
|
||||||
for _, dtd in pairs(tracker) do
|
for _, dtd in pairs(tracker) do
|
||||||
if dtd.type == "DtD" and dtd.hostname == track.hostname then
|
if dtd.type == "DtD" and dtd.hostname == track.hostname then
|
||||||
if dtd.distance and dtd.distance < dtd_distance then
|
if dtd.distance and dtd.distance < dtd_distance then
|
||||||
track.blocks.dtd = true
|
track.blocks.dtd = true
|
||||||
else
|
|
||||||
track.blocks.dtd = false
|
|
||||||
end
|
end
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue