Pass seed option to Config for cmd/torrent (#108)

This commit is contained in:
Matt Joiner 2016-08-31 19:33:54 +10:00 committed by GitHub
commit 1a1676c445
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ func main() {
if flags.Addr != nil {
clientConfig.ListenAddr = flags.Addr.String()
}
if flags.Seed {
clientConfig.Seed = true
}
client, err := torrent.NewClient(&clientConfig)
if err != nil {