Pass seed option to Config for cmd/torrent (#108)
This commit is contained in:
commit
1a1676c445
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue