MCPcopy
hub / github.com/fatedier/frp / getProxyStatus

Method getProxyStatus

client/service.go:445–454  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

443}
444
445func (svr *Service) getProxyStatus(name string) (*proxy.WorkingStatus, bool) {
446 svr.ctlMu.RLock()
447 ctl := svr.ctl
448 svr.ctlMu.RUnlock()
449
450 if ctl == nil {
451 return nil, false
452 }
453 return ctl.pm.GetProxyStatus(name)
454}
455
456func (svr *Service) getVisitorCfg(name string) (v1.VisitorConfigurer, bool) {
457 svr.ctlMu.RLock()

Callers 1

GetProxyConfigMethod · 0.80

Calls 1

GetProxyStatusMethod · 0.65

Tested by

no test coverage detected