early-run tor, enable onion site

This commit is contained in:
idk
2022-02-28 19:59:47 -05:00
parent 913a309a25
commit b16b9cea71
6 changed files with 126 additions and 4 deletions

View File

@ -38,6 +38,11 @@ func NewClient(verbose bool, lang, os, arch, mirror string, content *embed.FS) (
m.TBD.Mirror = mirror
m.TBD.Verbose = verbose
m.TBD.MakeTBDirectory()
var err error
m.Onion, err = i2pdotonion.NewOnionService(m.TBD.DownloadPath)
if err != nil {
return nil, err
}
tgz, sig, err := m.TBD.DownloadUpdaterForLang(lang)
if err != nil {
panic(err)