mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-10-22 09:12:17 +00:00
xftp: add quota param to server CLI, restrict chunk sizes (#659)
* xftp: add quota param to server CLI * only allow certain file sizes, fix tests
This commit is contained in:
1 parent
781f8e0000
commit
2f15ce2662
12 files changed
+72
-39
No files matched your search
@@ -52,7 +52,7 @@ xftpClientVersion :: String
|
||||
xftpClientVersion = "0.1.0"
|
||||
|
||||
defaultChunkSize :: Word32
|
||||
defaultChunkSize = 8 * mb
|
||||
defaultChunkSize = 4 * mb
|
||||
|
||||
smallChunkSize :: Word32
|
||||
smallChunkSize = 1 * mb
|
||||
@@ -63,9 +63,6 @@ fileSizeLen = 8
|
||||
authTagSize :: Int64
|
||||
authTagSize = fromIntegral C.authTagSize
|
||||
|
||||
mb :: Num a => a
|
||||
mb = 1024 * 1024
|
||||
|
||||
newtype CLIError = CLIError String
|
||||
deriving (Eq, Show, Exception)
|
||||
|
||||
|
||||
Reference in new issue
Block a user