mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-18 22:41:04 +02:00
Move RealClientIP code to IP packages
This commit is contained in:
@@ -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