Registry / utility / admpub-realip

admpub-realip

JSON →
library0.2.7gogounverified

A Go library to extract the real client IP address from HTTP requests, considering proxies.

go get github.com/admpub/realip
INSTALL
IMPORT
SIG · ADMPUB-REALIP
A
admpub-realip
utilitygov0.2.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

realip
github.com/admpub/realip

Extracts the real IP from an HTTP request.

package main import ( "fmt" "net/http" "github.com/admpub/realip" ) func main() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { ip := realip.FromRequest(r) fmt.Fprintf(w, "Your IP: %s", ip) }) http.ListenAndServe(":8080", nil) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
53 hits · last 30 days
node
48
OpenAI (training)
1
Resources
admpub-realip — go get admpub-realip · libregistry