github.com/sagernet/sing-box@v1.9.0-rc.20/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  }