github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/outbound/tor_embed_mobile.go (about) 1 //go:build with_embedded_tor && (android || ios) 2 3 package outbound 4 5 import ( 6 "github.com/cretz/bine/tor" 7 "github.com/ooni/go-libtor" 8 ) 9 10 func newConfig() tor.StartConf { 11 return tor.StartConf{ 12 ProcessCreator: libtor.Creator, 13 UseEmbeddedControlConn: true, 14 } 15 }