Skip to content

Commit

Permalink
torrent default piece size 4096
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Feb 2, 2023
1 parent 889660f commit 361daa7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/torrent-create/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ func main() {
} else {
mi.CreatedBy = "github.com/CortexFoundation/torrentfs"
}
if args.PieceLength.Int64() == 0 {
args.PieceLength = 4096
}
info := metainfo.Info{
PieceLength: args.PieceLength.Int64(),
}
Expand Down

0 comments on commit 361daa7

Please sign in to comment.