sing-box/experimental/clashapi.go

15 lines
428 B
Go
Raw Normal View History

2022-07-19 23:12:40 +00:00
//go:build with_clash_api
package experimental
import (
"github.com/sagernet/sing-box/adapter"
"github.com/sagernet/sing-box/experimental/clashapi"
"github.com/sagernet/sing-box/log"
"github.com/sagernet/sing-box/option"
)
func NewClashServer(router adapter.Router, logFactory log.ObservableFactory, options option.ClashAPIOptions) (adapter.ClashServer, error) {
2022-09-10 06:40:16 +00:00
return clashapi.NewServer(router, logFactory, options)
2022-07-19 23:12:40 +00:00
}