sing-box/outbound/tor_embed_mobile.go

16 lines
273 B
Go
Raw Permalink Normal View History

2023-03-15 12:59:45 +00:00
//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,
}
}