diff --git a/main.go b/main.go index d802eab..2d0c450 100644 --- a/main.go +++ b/main.go @@ -80,7 +80,7 @@ func mainHandler(c *gin.Context) { c.Abort() } - header_ip := net.ParseIP(c.Request.Header.Get(configuration.ipheader)) + header_ip := net.ParseIP(strings.Split(c.Request.Header.Get(configuration.ipheader), ",")[0]) if header_ip != nil { ip.IP = header_ip }