You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-12-01 22:51:45 +02:00
Move RealClientIP code to IP packages
This commit is contained in:
11
pkg/apis/ip/interfaces.go
Normal file
11
pkg/apis/ip/interfaces.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package ip
|
||||
|
||||
import (
|
||||
"net"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// RealClientIPParser is an interface for a getting the client's real IP to be used for logging.
|
||||
type RealClientIPParser interface {
|
||||
GetRealClientIP(http.Header) (net.IP, error)
|
||||
}
|
||||
Reference in New Issue
Block a user