- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestXFFDisabled (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
internal/handlers/proxy_test.go
v.key: []string{v.val}, }, } res := GetSourceIP(req) if res != v.expected { t.Errorf("wrong header for %s: got %s want %s", v.key, res, v.expected) } } } func TestXFFDisabled(t *testing.T) { req := &http.Request{ Header: http.Header{ xForwardedFor: []string{"8.8.8.8"}, xRealIP: []string{"1.1.1.1"}, }, }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Feb 26 19:25:49 GMT 2025 - 3.9K bytes - Click Count (0)