Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ericls/imgdd
/ ExtractIP
Function
ExtractIP
httpserver/ip.go:31–37 ·
view source on GitHub ↗
(req *http.Request)
Source
from the content-addressed store, hash-verified
29
}
30
31
func
ExtractIP(req *http.Request) string {
32
ip := ExtractIPXFF(req)
33
if
ip ==
""
{
34
ip = ExtractIPDirect(req)
35
}
36
return
ip
37
}
Callers
2
makeUploadHandler
Function · 0.85
LoggerMiddleware
Function · 0.85
Calls
2
ExtractIPXFF
Function · 0.85
ExtractIPDirect
Function · 0.85
Tested by
no test coverage detected