diff --git a/src/iran_server.nim b/src/iran_server.nim index 7d70784..17c086b 100644 --- a/src/iran_server.nim +++ b/src/iran_server.nim @@ -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)