]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Update metainfo.go
authorAranjedeath <Aranjedeath@users.noreply.github.com>
Wed, 9 Dec 2020 05:27:50 +0000 (21:27 -0800)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 9 Dec 2020 23:12:33 +0000 (10:12 +1100)
delete "yoloham" so that is no longer the default comment string on torrents made without a comment specified. Should resolve https://github.com/anacrolix/torrent/issues/342

metainfo/metainfo.go

index 7dbacd1a12f4c8a8cbb82717df76a69c0a746b35..2e471c8acbdfbb3eb42dedc53f6f8f324cb17def 100644 (file)
@@ -61,7 +61,7 @@ func (mi MetaInfo) Write(w io.Writer) error {
 
 // Set good default values in preparation for creating a new MetaInfo file.
 func (mi *MetaInfo) SetDefaults() {
-       mi.Comment = "yoloham"
+       mi.Comment = ""
        mi.CreatedBy = "github.com/anacrolix/torrent"
        mi.CreationDate = time.Now().Unix()
        // mi.Info.PieceLength = 256 * 1024