From fb6060cf3a67db783e4f2762a19fddadb46d1a3a Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Sat, 7 Jan 2023 17:57:33 -0800 Subject: [PATCH] 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. --- files/usr/local/bin/mgr/lqm.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/files/usr/local/bin/mgr/lqm.lua b/files/usr/local/bin/mgr/lqm.lua index 8b01f1e3..879d42fb 100755 --- a/files/usr/local/bin/mgr/lqm.lua +++ b/files/usr/local/bin/mgr/lqm.lua @@ -551,7 +551,6 @@ function lqm() if track.type == "Tunnel" then -- Tunnels have no MAC, so we can only use IP level pings. local sigsock = nixio.socket("inet", "dgram") - sigsock:setopt("socket", "bindtodevice", track.device) sigsock:setopt("socket", "rcvtimeo", ping_timeout) -- Must connect or we wont see the error sigsock:connect(track.ip, 8080)