Files
umbrix-libcore/mobile/mobile.go
problematicconsumer d0fe323068 bootstrap
2023-08-16 15:16:02 +03:30

13 lines
366 B
Go

package mobile
import (
"github.com/hiddify/libcore/shared"
_ "github.com/sagernet/gomobile/event/key"
)
func ConvertToSingbox(path string) (string, error) {
options := shared.ConfigTemplateOptions{IncludeTunInbound: true, IncludeMixedInbound: false, IncludeLogOutput: false}
config, err := shared.ConvertToSingbox(path, options)
return string(config), err
}