From: Ye Yin Date: Wed, 31 Aug 2016 09:20:20 +0000 (+0800) Subject: Pass seed option to Config for cmd/torrent X-Git-Tag: v1.0.0~601^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2fba33d5a28c3a238dfcd1570f57aaf28d34be3b;p=btrtrc.git Pass seed option to Config for cmd/torrent --- diff --git a/cmd/torrent/main.go b/cmd/torrent/main.go index 626ee094..358ef9ed 100644 --- a/cmd/torrent/main.go +++ b/cmd/torrent/main.go @@ -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 {