From 03341e6af754bd916fe9f4a73dc33f5def2324d0 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 1 Aug 2019 22:38:57 +1000 Subject: [PATCH] made the more intelligent routing actually work --- service/minitel.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/minitel.lua b/service/minitel.lua index fb3a52c..c74b375 100644 --- a/service/minitel.lua +++ b/service/minitel.lua @@ -175,15 +175,15 @@ function start() end else dprint("Not cached", cfg.port,packetID,packetType,dest,sender,vPort,data) - if v.address ~= repeatingFrom or (v.type ~= "tunnel" and v.isWireless()) then - for k,v in pairs(modems) do + for k,v in pairs(modems) do + if v.address ~= repeatingFrom or (v.type ~= "tunnel" and v.isWireless()) then if v.type == "modem" then v.broadcast(cfg.port,packetID,packetType,dest,sender,vPort,data) elseif v.type == "tunnel" then v.send(packetID,packetType,dest,sender,vPort,data) end end - end + end end end