Fix build embed tor for mobile
This commit is contained in:
15
outbound/tor_embed_mobile.go
Normal file
15
outbound/tor_embed_mobile.go
Normal file
@@ -0,0 +1,15 @@
|
||||
//go:build with_embedded_tor && (android || ios)
|
||||
|
||||
package outbound
|
||||
|
||||
import (
|
||||
"github.com/cretz/bine/tor"
|
||||
"github.com/ooni/go-libtor"
|
||||
)
|
||||
|
||||
func newConfig() tor.StartConf {
|
||||
return tor.StartConf{
|
||||
ProcessCreator: libtor.Creator,
|
||||
UseEmbeddedControlConn: true,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user