Files
umbrix-libcore/custom/command_server.go
problematicconsumer cb1d08734a Add command server
2023-08-28 13:07:21 +03:30

17 lines
359 B
Go

package main
import "github.com/sagernet/sing-box/experimental/libbox"
var commandServer *libbox.CommandServer
type CommandServerHandler struct{}
func (csh *CommandServerHandler) ServiceReload() error {
return nil
}
func startCommandServer() error {
commandServer = libbox.NewCommandServer(&CommandServerHandler{}, 300)
return commandServer.Start()
}