Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/SenseUnit/dumbproxy
/ getLocalAddr
Function
getLocalAddr
handler/handler.go:299–304 ·
view source on GitHub ↗
(ctx context.Context)
Source
from the content-addressed store, hash-verified
297
}
298
299
func
getLocalAddr(ctx context.Context) string {
300
if
addr, ok := ctx.Value(http.LocalAddrContextKey).(net.Addr); ok {
301
return
addr.String()
302
}
303
return
"<request context is missing address>"
304
}
Callers
1
ServeHTTP
Method · 0.85
Calls
2
Value
Method · 0.45
String
Method · 0.45
Tested by
no test coverage detected