Embed and unpack the key if it's not present either

This commit is contained in:
idk
2022-01-23 13:40:14 -05:00
parent 5bc7752255
commit 2ee490a077
3 changed files with 25 additions and 6 deletions

View File

@ -10,6 +10,7 @@ import (
)
//go:embed tor-browser/unpack/i2p.firefox/*
//go:embed tor-browser/TPO-signing-key.pub
var content embed.FS
//var runtimePair = tbget.GetRuntimePair()
@ -37,10 +38,11 @@ func main() {
}
log.Println("Using auto-detected language", *lang)
}
client, err := tbserve.NewClient("", *lang, *os, *arch)
client, err := tbserve.NewClient("", *lang, *os, *arch, &content)
if err != nil {
log.Fatal("Couldn't create client", err)
}
//client.TBD.Profile = &content
client.TBS.Profile = &content
if *i2pbrowser {
client.TBS.RunI2PBWithLang()