Add tor outbound

This commit is contained in:
世界
2022-08-21 00:59:49 +08:00
parent 0686ad25fd
commit 990a80c2d3
18 changed files with 524 additions and 16 deletions

15
outbound/tor_embed.go Normal file
View File

@@ -0,0 +1,15 @@
//go:build with_embedded_tor
package outbound
import (
"berty.tech/go-libtor"
"github.com/cretz/bine/tor"
)
func newConfig() tor.StartConf {
return tor.StartConf{
ProcessCreator: libtor.Creator,
UseEmbeddedControlConn: true,
}
}