Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Paxxs/traefik-get-real-ip
/ functions
Functions
11 in github.com/Paxxs/traefik-get-real-ip
⨍
Functions
11
◇
Types & classes
3
↓ 8 callers
Method
log
log is a method of GetRealIP that outputs logs only if logging is enabled. Usage is similar to fmt.Sprintf, but it automatically includes a prefix and
get_real_ip.go:149
↓ 5 callers
Method
ServeHTTP
真正干事情了
get_real_ip.go:68
↓ 1 callers
Function
assertHeader
(t *testing.T, req *http.Request, key, expected string)
get_real_ip_test.go:147
↓ 1 callers
Method
getIP
getIP is used to obtain valid IP addresses. The parameter s is the input IP text, which should be in the format of x.x.x.x or x.x.x.x:1234.
get_real_ip.go:138
Function
CreateConfig
CreateConfig creates the default plugin configuration.
get_real_ip.go:34
Function
New
New creates and returns a new realip plugin instance.
get_real_ip.go:53
Function
TestDeny403Disabled
Test that deny403OnFail=false allows all requests
get_real_ip_test.go:303
Function
TestDeny403OnFail
(t *testing.T)
get_real_ip_test.go:220
Function
TestEraseProxyHeaders
Test the EraseProxyHeaders functionality
get_real_ip_test.go:352
Function
TestLogging
(t *testing.T)
get_real_ip_test.go:154
Function
TestNew
(t *testing.T)
get_real_ip_test.go:16