github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/outbound/tor_embed.go (about)

     1  //go:build with_embedded_tor && !(android || ios)
     2  
     3  package outbound
     4  
     5  import (
     6  	"berty.tech/go-libtor"
     7  	"github.com/cretz/bine/tor"
     8  )
     9  
    10  func newConfig() tor.StartConf {
    11  	return tor.StartConf{
    12  		ProcessCreator:         libtor.Creator,
    13  		UseEmbeddedControlConn: true,
    14  	}
    15  }