mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-06-28 05:19:28 +00:00
Add debug log
This commit is contained in:
parent
3362e1a343
commit
da955907a5
@ -2,6 +2,7 @@
|
||||
|
||||
import std/[options, sequtils]
|
||||
import pkg/chronos
|
||||
import pkg/chronicles
|
||||
import pkg/results
|
||||
import pkg/libp2p
|
||||
import pkg/libp2p/transports/tcptransport
|
||||
@ -136,6 +137,8 @@ method accept*(
|
||||
|
||||
let transportAddr = initTAddress(conn.observedAddr.get)
|
||||
if transportAddr.isErr:
|
||||
debug "Dropping inbound connection: invalid observed address",
|
||||
address = conn.observedAddr.get
|
||||
await conn.close()
|
||||
continue
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user