Add core grpc server

This commit is contained in:
problematicconsumer
2024-03-15 11:27:08 +03:30
parent 16a5191d2c
commit 85cc81a46a
6 changed files with 648 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ import (
"github.com/sagernet/sing-box/option"
)
func Setup() error {
return config.StartGRPCServer(7078)
}
func Parse(path string, tempPath string, debug bool) error {
config, err := config.ParseConfig(tempPath, debug)
if err != nil {