add hardened firefox, offline mode to menu

This commit is contained in:
idk
2022-05-11 18:59:34 -04:00
parent 0b94e6f87a
commit 63b7289605
9 changed files with 65 additions and 3 deletions

View File

@ -188,6 +188,14 @@ func (m *Client) ServeHTTP(rw http.ResponseWriter, rq *http.Request) {
log.Println("Starting I2P Browser")
go m.TBS.RunI2PBWithLang()
http.Redirect(rw, rq, "/", http.StatusFound)
case "/launch-firefox-browser":
log.Println("Starting Hardened Firefox Browser")
go m.TBS.RunTBBWithOfflineClearnetProfile("i2p.firefox", false, true)
http.Redirect(rw, rq, "/", http.StatusFound)
case "/launch-offline-browser":
log.Println("Starting Hardened Firefox Browser in offline mode")
go m.TBS.RunTBBWithOfflineClearnetProfile("i2p.firefox.offline", true, true)
http.Redirect(rw, rq, "/", http.StatusFound)
case "/start-tor":
log.Println("Starting Tor")
go m.TBS.RunTorWithLang()