MCPcopy
hub / github.com/windtf/wireproxy / configFilePath

Function configFilePath

cmd/wireproxy/main.go:62–69  ·  view source on GitHub ↗

check if default config file paths exist

()

Source from the content-addressed store, hash-verified

60
61// check if default config file paths exist
62func configFilePath() (string, bool) {
63 for _, path := range default_config_paths {
64 if _, err := os.Stat(path); err == nil {
65 return path, true
66 }
67 }
68 return "", false
69}
70
71func lock(stage string) {
72 switch stage {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected