X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcmd%2Fnncp-trns%2Fmain.go;h=27d9d6b9f6c58a610609ed0fd5b8396d90e89575;hb=0367cce2741e1ce6a89a49fd5c4e9df6005c9744;hp=6c6e3d47cb9b942186a9a40e369605694c812367;hpb=8225239b10b39cd59277f713c010c2ab3ea70b88;p=nncp.git diff --git a/src/cmd/nncp-trns/main.go b/src/cmd/nncp-trns/main.go index 6c6e3d4..27d9d6b 100644 --- a/src/cmd/nncp-trns/main.go +++ b/src/cmd/nncp-trns/main.go @@ -1,6 +1,6 @@ /* NNCP -- Node to Node copy, utilities for store-and-forward data exchange -Copyright (C) 2016-2021 Sergey Matveev +Copyright (C) 2016-2022 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ import ( "path/filepath" "strings" - "go.cypherpunks.ru/nncp/v7" + "go.cypherpunks.ru/nncp/v8" ) func usage() { @@ -137,7 +137,15 @@ func main() { if err != nil { panic(err) } - if _, err = ctx.Tx(node, pktTrns, nice, fi.Size(), 0, fd, pktName, nil); err != nil { + if _, _, err = ctx.Tx( + node, + pktTrns, + nice, + fi.Size(), 0, nncp.MaxFileSize, + fd, + pktName, + nil, + ); err != nil { log.Fatalln(err) } }