Fix build embed tor for mobile

This commit is contained in:
世界
2023-03-15 20:59:45 +08:00
parent 5a4e8fea81
commit f674b4fbd5
4 changed files with 19 additions and 1 deletions

View 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,
}
}