Skip to content

Commit

Permalink
fix name setting
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Feb 9, 2021
1 parent 1791dcf commit bbd04ec
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions eephttpd.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,11 @@ func (e *EepHttpd) MakeTorrent() error {
if err != nil {
return err
}
e.meta.URLList = metainfo.URLList{"http://" + e.HostName() + "/"}
e.meta.URLList = metainfo.URLList{"http://" + e.HostName()}
e.meta.Announce = "http://" + e.HostName() + "/a"
e.meta.AnnounceList = metainfo.AnnounceList{[]string{"http://" + e.HostName() + "/a", "http://w7tpbzncbcocrqtwwm3nezhnnsw4ozadvi2hmvzdhrqzfxfum7wa.b32.i2p/a"}}
e.meta.CreatedBy = "eephttpd"
infoc := e.meta.InfoHash()
if err != nil {
return err
}
e.magnet = e.meta.Magnet(e.HostName(), infoc).String()
e.magnet = e.meta.Magnet(e.HostName(), e.meta.InfoHash()).String()
return nil
}

Expand Down

0 comments on commit bbd04ec

Please sign in to comment.