Skip to content

Commit

Permalink
xd
Browse files Browse the repository at this point in the history
  • Loading branch information
RadKesvat committed Sep 16, 2023
1 parent 89146a5 commit a0fe0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iran_server.nim
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ proc processConnection(client: Connection) {.async.} =

if client.trusted == TrustStatus.no:
data.setLen(data.len() + globals.full_tls_record_len.int)
await client.reader.readExactly(addr data[0 + globals.full_tls_record_len], data.len - globals.full_tls_record_len)
await client.reader.readExactly(addr data[0 + globals.full_tls_record_len], data.len - globals.full_tls_record_len.int)
else:
await client.reader.readExactly(addr data[0], data.len)

Expand Down

0 comments on commit a0fe0bc

Please sign in to comment.