initial commit

This commit is contained in:
erinn 2018-11-26 13:57:28 -08:00
parent 8a9ba6d154
commit 9cb11162cf
1 changed files with 5 additions and 3 deletions

View File

@ -20,6 +20,7 @@ import (
"bounce/go/cwtchthings"
"bounce/go/gothings"
"bounce/go/gobjects"
"git.openprivacy.ca/openprivacy/libricochet-go/connectivity"
)
func init() {
@ -103,12 +104,13 @@ func loadCwtchData(gcd *gothings.GrandCentralDispatcher) {
*/
os.MkdirAll(the.CwtchDir, 0700)
the.CwtchApp, err = libapp.NewApp(the.CwtchDir, "tor")
mn, err := connectivity.StartTor(the.CwtchDir, "")
if err != nil {
//TODO no more fatalfs
log.Fatalf("couldn't create cwtch app: %v", err)
log.Printf("[!!!] Could not start Tor: %v", err)
}
the.CwtchApp = libapp.NewApp(mn, the.CwtchDir)
err = the.CwtchApp.LoadProfiles("be gay do crime")
if err != nil {
//TODO no more fatalfs