MCPcopy Index your code
hub / github.com/mudler/LocalAI / Addr

Method Addr

core/services/cloudproxy/mitm/proxy.go:109–114  ·  view source on GitHub ↗

Addr returns the bound listener address. Useful when Start was called with ":0" — the kernel picks a port and tests need to discover which.

()

Source from the content-addressed store, hash-verified

107// called with ":0" — the kernel picks a port and tests need to
108// discover which.
109func (s *Server) Addr() string {
110 if s.listener == nil {
111 return s.addr
112 }
113 return s.listener.Addr().String()
114}
115
116// Stop is idempotent.
117func (s *Server) Stop() {

Callers 15

startPIITestRigFunction · 0.95
startMITMTestRigFunction · 0.95
h2InterceptRigFunction · 0.95
startMITMLockedFunction · 0.95
freePortFunction · 0.80
freePortFunction · 0.80
freePortFunction · 0.80
buildMITMStatusFunction · 0.80
proxyMethod · 0.80
StartMethod · 0.80
leaf_test.goFile · 0.80
restart_test.goFile · 0.80

Calls 1

StringMethod · 0.65

Tested by 15

startPIITestRigFunction · 0.76
startMITMTestRigFunction · 0.76
h2InterceptRigFunction · 0.76
freePortFunction · 0.64
freePortFunction · 0.64
freePortFunction · 0.64
startLiveASRServerFunction · 0.64
startTestServerFunction · 0.64
startMockMCPServerFunction · 0.64
startAgentMockLLMServerFunction · 0.64
startTestMCPServerFunction · 0.64
startMockLLMServerFunction · 0.64