Skip to content

Commit

Permalink
fix fake upload not working for udp downloaded bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
RadKesvat committed Nov 22, 2023
1 parent f07abb8 commit 7064aed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/iran_server.nim
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ proc processDownBoundRemote(remote: Connection) {.async.} =
udp_up_bound.hit()
await context.listener_udp.sendTo(udp_up_bound.raddr, data)
if globals.log_data_len: echo &"[processRemote] {data.len} bytes -> client"
if fupload: context.fakeupload_remain.inc(globals.noise_ratio.int * data.len())


else:
try:
Expand Down

0 comments on commit 7064aed

Please sign in to comment.