Update auth stuff
This commit is contained in:
@@ -380,7 +380,7 @@ func (a *application) addressOfRequest(r *http.Request) string {
|
||||
}
|
||||
|
||||
ips := strings.Split(forwardedFor, ",")
|
||||
if len(ips) == 0 {
|
||||
if len(ips) == 0 || ips[0] == "" {
|
||||
return remoteAddrWithoutPort()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user