1
0
mirror of https://github.com/XeonSquared/OC-Copper.git synced 2024-11-23 01:48:06 +11:00

OC Hierarchial Gateway fix

This commit is contained in:
20kdc 2017-03-25 10:51:50 +00:00
parent 65f896b291
commit 2cd85360c6

View File

@ -41,7 +41,7 @@ for a, _ in component.list("modem") do
end
inboundModem.open(4957)
if not outboundModem then
if not outboundModemAdr then
local tunnel = component.tunnel
-- Implement just enough of an outbound modem to be useful.
outboundModem = {
@ -105,7 +105,7 @@ local function handlePacket(incoming, dat)
if not data then return end -- corrupt packet
if hops == 255 then return end
local tfrom, tto = checkLen(processFrom(nfrom)), checkLen(processTo(nto))
local tfrom, tto = checkLen(processFrom(incoming, nfrom)), checkLen(processTo(incoming, nto))
if tfrom and tto then
local resdata = cdlib.encode(hops + 1, tfrom, tto, data)
if incoming then