mirror of
https://github.com/XeonSquared/OC-Copper.git
synced 2024-11-27 03:38:05 +11:00
OC Hierarchial Gateway fix
This commit is contained in:
parent
65f896b291
commit
2cd85360c6
@ -41,7 +41,7 @@ for a, _ in component.list("modem") do
|
|||||||
end
|
end
|
||||||
|
|
||||||
inboundModem.open(4957)
|
inboundModem.open(4957)
|
||||||
if not outboundModem then
|
if not outboundModemAdr then
|
||||||
local tunnel = component.tunnel
|
local tunnel = component.tunnel
|
||||||
-- Implement just enough of an outbound modem to be useful.
|
-- Implement just enough of an outbound modem to be useful.
|
||||||
outboundModem = {
|
outboundModem = {
|
||||||
@ -105,7 +105,7 @@ local function handlePacket(incoming, dat)
|
|||||||
if not data then return end -- corrupt packet
|
if not data then return end -- corrupt packet
|
||||||
if hops == 255 then return end
|
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
|
if tfrom and tto then
|
||||||
local resdata = cdlib.encode(hops + 1, tfrom, tto, data)
|
local resdata = cdlib.encode(hops + 1, tfrom, tto, data)
|
||||||
if incoming then
|
if incoming then
|
||||||
|
Loading…
Reference in New Issue
Block a user