mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-31 00:14:21 +03:00
Add tor outbound
This commit is contained in:
15
outbound/tor_embed.go
Normal file
15
outbound/tor_embed.go
Normal file
@@ -0,0 +1,15 @@
|
||||
//go:build with_embedded_tor
|
||||
|
||||
package outbound
|
||||
|
||||
import (
|
||||
"berty.tech/go-libtor"
|
||||
"github.com/cretz/bine/tor"
|
||||
)
|
||||
|
||||
func newConfig() tor.StartConf {
|
||||
return tor.StartConf{
|
||||
ProcessCreator: libtor.Creator,
|
||||
UseEmbeddedControlConn: true,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user