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

Method resolvedAuthDir

internal/pluginhost/auth_callbacks.go:479–499  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

477}
478
479func (h *Host) resolvedAuthDir() string {
480 if h == nil {
481 return ""
482 }
483 h.mu.Lock()
484 authDir := ""
485 if h.runtimeConfig != nil {
486 authDir = strings.TrimSpace(h.runtimeConfig.AuthDir)
487 }
488 h.mu.Unlock()
489 if authDir == "" {
490 return ""
491 }
492 authDir = filepath.Clean(authDir)
493 if !filepath.IsAbs(authDir) {
494 if abs, errAbs := filepath.Abs(authDir); errAbs == nil {
495 authDir = abs
496 }
497 }
498 return authDir
499}
500
501func (h *Host) authIDForPath(path string) string {
502 path = strings.TrimSpace(path)

Callers 3

listAuthFilesFromDiskMethod · 0.95
saveAuthFileMethod · 0.95
authIDForPathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected