Skip to content

Commit

Permalink
Merge pull request #306 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
torrent default piece size 4096
  • Loading branch information
ucwong authored Feb 2, 2023
2 parents 7fe6b03 + 361daa7 commit cc1926d
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 cc1926d

Please sign in to comment.