You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-06-15 00:15:00 +02:00
.github
contrib
docs
pkg
apis
ip
interfaces.go
middleware
options
sessions
authentication
cookies
encryption
header
ip
logger
middleware
requests
sessions
upstream
util
validation
providers
testdata
.dockerignore
.gitignore
.golangci.yml
CHANGELOG.md
CONTRIBUTING.md
Dockerfile
Dockerfile.arm64
Dockerfile.armv6
LICENSE
MAINTAINERS
Makefile
README.md
RELEASE.md
dist.sh
go.mod
go.sum
http.go
http_test.go
logging_handler.go
logging_handler_test.go
main.go
nsswitch.conf
oauthproxy.go
oauthproxy_test.go
templates.go
templates_test.go
validator.go
validator_test.go
version.go
watcher.go
watcher_unsupported.go
12 lines
224 B
Go
12 lines
224 B
Go
![]() |
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)
|
||
|
}
|