MCPcopy 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
31func ExtractIP(req *http.Request) string {
32 ip := ExtractIPXFF(req)
33 if ip == "" {
34 ip = ExtractIPDirect(req)
35 }
36 return ip
37}

Callers 2

makeUploadHandlerFunction · 0.85
LoggerMiddlewareFunction · 0.85

Calls 2

ExtractIPXFFFunction · 0.85
ExtractIPDirectFunction · 0.85

Tested by

no test coverage detected