|
|
|
@ -23,7 +23,7 @@ function network.send(addr, port, msg)
|
|
|
|
local callback = nodes[addr]
|
|
|
|
local callback = nodes[addr]
|
|
|
|
if callback == nil then
|
|
|
|
if callback == nil then
|
|
|
|
if not network.allow_blackhole then
|
|
|
|
if not network.allow_blackhole then
|
|
|
|
error("Send message to offline node: "..addr)
|
|
|
|
error("Send message to offline node: "..tostring(addr))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|