MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / StartService

Function StartService

internal/cmd/run.go:30–32  ·  view source on GitHub ↗

StartService builds and runs the proxy service using the exported SDK. It creates a new proxy service instance, sets up signal handling for graceful shutdown, and starts the service with the provided configuration. Parameters: - cfg: The application configuration - configPath: The path to the confi

(cfg *config.Config, configPath string, localPassword string)

Source from the content-addressed store, hash-verified

28// - configPath: The path to the configuration file
29// - localPassword: Optional password accepted for local management requests
30func StartService(cfg *config.Config, configPath string, localPassword string) {
31 StartServiceWithPluginHost(cfg, configPath, localPassword, nil)
32}
33
34// StartServiceWithPluginHost builds and runs the proxy service with a shared plugin host.
35func StartServiceWithPluginHost(cfg *config.Config, configPath string, localPassword string, host *pluginhost.Host) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected