Fix idle tunnel quality check

When a tunnel is idle, binding to the tun* device fails; so remove it.
As we have a direct tunnel route in the routing table (not OLSR table 30)
created by vtun, we will still correctly route the quality testing traffic.
This commit is contained in:
Tim Wilkinson 2023-01-07 17:57:33 -08:00 committed by Joe AE6XE
parent b082f56fee
commit fb6060cf3a
1 changed files with 0 additions and 1 deletions

View File

@ -551,7 +551,6 @@ function lqm()
if track.type == "Tunnel" then if track.type == "Tunnel" then
-- Tunnels have no MAC, so we can only use IP level pings. -- Tunnels have no MAC, so we can only use IP level pings.
local sigsock = nixio.socket("inet", "dgram") local sigsock = nixio.socket("inet", "dgram")
sigsock:setopt("socket", "bindtodevice", track.device)
sigsock:setopt("socket", "rcvtimeo", ping_timeout) sigsock:setopt("socket", "rcvtimeo", ping_timeout)
-- Must connect or we wont see the error -- Must connect or we wont see the error
sigsock:connect(track.ip, 8080) sigsock:connect(track.ip, 8080)