debug Distributor
This commit is contained in:
parent
5206a83324
commit
faec74dc0c
|
@ -87,12 +87,14 @@ defmodule Floof.Distributor do
|
|||
end
|
||||
)
|
||||
|
||||
for trg <- trgs do
|
||||
send(trg, {:fwdxfer, {dcdhash, dcd}})
|
||||
end
|
||||
if dcd != nil do
|
||||
for trg <- trgs do
|
||||
send(trg, {:fwdxfer, {dcdhash, dcd}})
|
||||
end
|
||||
|
||||
if ttl > 1 do
|
||||
Floof.SessionManager.set_for_all(dcdhash, dcd, origin)
|
||||
if ttl > 1 do
|
||||
Floof.SessionManager.set_for_all(dcdhash, dcd, origin)
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
@ -114,6 +116,7 @@ defmodule Floof.Distributor do
|
|||
cond do
|
||||
Floof.DistributorSeen.have_we(dcdhash) ->
|
||||
# we can ignore this packet, its content was already processed
|
||||
Logger.debug("packet discarded, already seen #{Base.url_encode64(dcdhash)}")
|
||||
false
|
||||
|
||||
not :enacl.sign_verify_detached(sigval, xfinner, pubkey) ->
|
||||
|
|
Loading…
Reference in a new issue