MCPcopy Create free account
hub / github.com/mpolden/echoip / New

Function New

http/http.go:66–68  ·  view source on GitHub ↗
(db geo.Reader, cache *Cache, profile bool)

Source from the content-addressed store, hash-verified

64}
65
66func New(db geo.Reader, cache *Cache, profile bool) *Server {
67 return &Server{cache: cache, gr: db, profile: profile}
68}
69
70func ipFromForwardedForHeader(v string) string {
71 before, _, ok := strings.Cut(v, ",")

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected