aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 84333db..af5e4c7 100644
--- a/main.go
+++ b/main.go
@@ -36,6 +36,8 @@ func getDefaultOptions() map[string]float64 {
}
func getIP(request *http.Request) (string, error) {
+ log.Println("X-Forwarded-For:", request.Header.Get("X-Forwarded-For"))
+ log.Println("X-Real-IP:", request.Header.Get("X-Real-IP"))
ips := request.Header.Get("X-Forwarded-For")
splitIps := strings.Split(ips, ",")