mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 06:23:10 +00:00
fix: remove waku sync broken dos mechanism (#3472)
This commit is contained in:
parent
b4374a5ada
commit
ea2da0942b
@ -143,9 +143,10 @@ proc needsReceiverLoop(self: SyncTransfer) {.async.} =
|
||||
proc initProtocolHandler(self: SyncTransfer) =
|
||||
proc handler(conn: Connection, proto: string) {.async: (raises: [CancelledError]).} =
|
||||
while true:
|
||||
if not self.inSessions.contains(conn.peerId):
|
||||
## removed DOS prototection until we can design something better
|
||||
#[ if not self.inSessions.contains(conn.peerId):
|
||||
error "unwanted peer, disconnecting", remote = conn.peerId
|
||||
break
|
||||
break ]#
|
||||
|
||||
let readRes = catch:
|
||||
await conn.readLp(int64(DefaultMaxWakuMessageSize))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user