MCPcopy Create free account
hub / github.com/Authula/authula / ExtractClientIP

Function ExtractClientIP

internal/util/http.go:36–88  ·  view source on GitHub ↗

ExtractClientIP extracts the client IP address from various sources accurately

(logger models.Logger, req *http.Request, trustedHeaders []string, trustedProxies []string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ServeHTTPMethod · 0.92

Calls 3

getHostFunction · 0.85
isIPTrustedFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected