fix: disable grpc core

This commit is contained in:
Hiddify
2024-03-17 19:20:24 +01:00
parent 84e5933d9d
commit 4bdcb7c4c9
2 changed files with 4 additions and 1 deletions

View File

@@ -394,6 +394,7 @@ func BuildConfig(opt ConfigOptions, input option.Options) (*option.Options, erro
OutboundMainProxyTag = OutboundSelectTag
//inbound==warp over proxies
//outbound==proxies over warp
fmt.Printf("opt.Warp=%+v\n", opt.Warp)
if opt.Warp.EnableWarp && (opt.Warp.Mode == "warp_over_proxy" || opt.Warp.Mode == "proxy_over_warp") {
out, err := generateWarpSingbox(opt.Warp.WireguardConfig.ToWireguardConfig(), opt.Warp.CleanIP, opt.Warp.CleanPort, opt.Warp.FakePackets, opt.Warp.FakePacketSize, opt.Warp.FakePacketDelay)

View File

@@ -11,7 +11,8 @@ import (
)
func Setup() error {
return config.StartGRPCServer(7078)
// return config.StartGRPCServer(7078)
return nil
}
func Parse(path string, tempPath string, debug bool) error {
@@ -44,6 +45,7 @@ func BuildConfig(path string, configOptionsJson string) (string, error) {
return "", err
}
}
return config.BuildConfigJson(*configOptions, options)
}